BLL/TCWL_B_ProcessFormModel.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

namespace BLL
{
    using Common;
    using DAL;
    using Model;
    using System;
    using System.Data;

    public class TCWL_B_ProcessFormModel
    {
        private readonly TCWL_D_ProcessFormModel dal = new TCWL_D_ProcessFormModel();

        public bool Add(TCWL_M_ProcessFormModel model)
        {
            return this.dal.Add(model);
        }

        public bool Delete(string ID)
        {
            return this.dal.Delete(ID);
        }

        public string GetByID(string ID)
        {
            DataTable byID = this.dal.GetByID(ID);
            if (byID != null)
            {
                return JsonHelper.DataTableToJson(byID);
            }
            return "";
        }

        public string GetList(string strWhere, string user)
        {
            DataTable list = this.dal.GetList(strWhere, user);
            if (list != null)
            {
                return ("{\"rows\":" + JsonHelper.DataTableToJson(list) + "}");
            }
            return "";
        }

        public string GetListByPage(string strWhere, int startIndex, int endIndex)
        {
            int total = 0;
            DataTable dt = this.dal.GetListByPage(strWhere, startIndex, endIndex, out total);
            if (dt != null)
            {
                return string.Concat(new object[] { "{\"total\":", total, ",\"rows\":", JsonHelper.DataTableToJson(dt), "}" });
            }
            return "";
        }

        public object HasName(string name)
        {
            return this.dal.HasName(name);
        }

        public bool Update(TCWL_M_ProcessFormModel model)
        {
后面还有 5 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。