Пример #1
0
        public override void  Execute(EciContext context)
        {
            this.ServiceId = MESService.MesBdGdzcTqyjlSearch;

            SearchResult result = MesBdGdzcTqyjlBLL.Instance.Search(context.BLLContext, context.Request.Paging, context.Request.Entity);

            SearchHelper.ConvertToContext(context, result);
        }
Пример #2
0
        public override void Execute(EciContext context)
        {
            this.ServiceId = MESService.MesBdZyGetLower;

            string    id   = context.Request["ID"];
            DataTable data = MesBdZyBLL.Instance.GetLower(context.BLLContext, id);

            context.Response.DataTable = data;
        }
Пример #3
0
        public override void Execute(EciContext context)
        {
            this.ServiceId = MESService.MesBdGysGywlDelete;

            List <string> listKey = context.Request.ListKey;

            MesBdGysGywlBLL.Instance.Delete(context.BLLContext, context.Request.ListKey);

            context.Response.Message = "删除成功";
        }
Пример #4
0
        public override void Execute(EciContext context)
        {
            this.ServiceId = MESService.MesBdGdzcSave;

            EntityBase saveEntity = context.Request.Entity;
            bool       isAdd      = context.Request.IsAdd;

            context.Response.Entity = MesBdGdzcBLL.Instance.Save(context.BLLContext, saveEntity, isAdd);

            context.Response.Message = isAdd? "新增成功":"修改成功";
        }
Пример #5
0
        public override void Execute(EciContext context)
        {
            this.ServiceId = MESService.ImportSearch;

            string bizType = context.Request["BIZ_TYPE"].ToString();
            string bizNo   = context.Request["BIZ_NO"].ToString();

            SearchResult result = ImportBLL.Instance.ImportSearch(context.BLLContext, context.Request.Paging, context.Request.Entity, bizType, bizNo);

            SearchHelper.ConvertToContext(context, result);
        }
Пример #6
0
        public override void Execute(EciContext context)
        {
            this.ServiceId = MESService.MesBdZyImport;

            EntityBase saveEntity = context.Request.Entity;
            bool       isAdd      = context.Request.IsAdd;

            MesBdZyBLL.Instance.MesBdZyImport(context.BLLContext, saveEntity, context.Request.DataSet);

            context.Response.Message = "导入成功";
        }
Пример #7
0
        public override void Execute(EciContext context)
        {
            this.ServiceId = MESService.MesBdDeptLoad;

            context.Response.DataTable = MesBdDeptBLL.Instance.Load(context.BLLContext, context.Request.Key);
        }