当前位置: 首页>>代码示例>>C#>>正文


C# General.ReturnValueInfo类代码示例

本文整理汇总了C#中Model.General.ReturnValueInfo的典型用法代码示例。如果您正苦于以下问题:C# ReturnValueInfo类的具体用法?C# ReturnValueInfo怎么用?C# ReturnValueInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ReturnValueInfo类属于Model.General命名空间,在下文中一共展示了ReturnValueInfo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DeleteRecord

        public ReturnValueInfo DeleteRecord(IModelObject KeyObject)
        {
            ReturnValueInfo rvInfo = new ReturnValueInfo();
            DepartmentMaster_dpm_Info searchInfo = KeyObject as DepartmentMaster_dpm_Info;
            if (searchInfo == null)
            {
                rvInfo.messageText = Common.DefineConstantValue.SystemMessageText.strMessageText_E_ObjectNull;
                rvInfo.isError = true;
                return rvInfo;
            }
            try
            {
                using (SIOTSDB_HHZXDataContext db = new SIOTSDB_HHZXDataContext())
                {
                    List<DepartmentMaster_dpm> listDept = db.DepartmentMaster_dpm.Where(x => x.dpm_RecordID == searchInfo.dpm_RecordID).ToList();

                    if (listDept != null)
                    {
                        db.DepartmentMaster_dpm.DeleteAllOnSubmit(listDept);
                        db.SubmitChanges();
                        rvInfo.boolValue = true;
                    }
                }
            }
            catch (Exception ex)
            {
                rvInfo.messageText = ex.Message;
                rvInfo.isError = true;
            }
            return rvInfo;
        }
开发者ID:Klutzdon,项目名称:SIOTS_HHZX,代码行数:31,代码来源:DepartmentMasterDA.cs

示例2: Save

        public Model.General.ReturnValueInfo Save(Model.IModel.IModelObject itemEntity, Common.DefineConstantValue.EditStateEnum EditMode)
        {
            ReturnValueInfo returnInfo = new ReturnValueInfo(false);

            ConsumeMachineMaster_cmm_Info objInfo = itemEntity as ConsumeMachineMaster_cmm_Info;

            try
            {
                switch (EditMode)
                {
                    case Common.DefineConstantValue.EditStateEnum.OE_Insert:
                        objInfo.cmm_dAddDate = DateTime.Now;
                        objInfo.cmm_dLastDate = DateTime.Now;
                        objInfo.cmm_dLastAccessTime = DateTime.Now;
                        objInfo.cmm_cRecordID = Guid.NewGuid();
                        returnInfo = _icmDA.InsertRecord(objInfo);
                        break;
                    case Common.DefineConstantValue.EditStateEnum.OE_Update:
                        objInfo.cmm_dLastDate = DateTime.Now;
                        returnInfo = _icmDA.UpdateRecord(objInfo);
                        break;
                }
            }
            catch
            {
                throw;
            }

            return returnInfo;
        }
开发者ID:Klutzdon,项目名称:SIOTS_HHZX,代码行数:30,代码来源:ConsumeMachineBL.cs

示例3: Save

 public ReturnValueInfo Save(IModelObject itemEntity, Common.DefineConstantValue.EditStateEnum EditMode)
 {
     ReturnValueInfo rvInfo = new ReturnValueInfo();
     try
     {
         switch (EditMode)
         {
             case Common.DefineConstantValue.EditStateEnum.OE_Insert:
                 rvInfo = this._iDMDL.InsertRecord(itemEntity as DepartmentMaster_dpm_Info);
                 break;
             case Common.DefineConstantValue.EditStateEnum.OE_Update:
                 rvInfo = this._iDMDL.UpdateRecord(itemEntity as DepartmentMaster_dpm_Info);
                 break;
             case Common.DefineConstantValue.EditStateEnum.OE_Delete:
                 rvInfo = this._iDMDL.DeleteRecord(itemEntity);
                 break;
             case Common.DefineConstantValue.EditStateEnum.OE_ReaOnly:
                 break;
             default:
                 break;
         }
     }
     catch (Exception ex)
     {
         rvInfo.messageText = ex.Message;
         rvInfo.isError = true;
     }
     return rvInfo;
 }
开发者ID:Klutzdon,项目名称:SIOTS_HHZX,代码行数:29,代码来源:DepartmentMasterBL.cs

示例4: Login

 void Login()
 {
     ILoginFormBL objILoginFormBL = BLL.Factory.SysMaster.MasterBLLFactory.GetBLL<ILoginFormBL>(BLL.Factory.SysMaster.MasterBLLFactory.LoginForm);
     ReturnValueInfo msg = new ReturnValueInfo();
     Sys_UserMaster_usm_Info userInfo = new Sys_UserMaster_usm_Info();
     userInfo.usm_cUserLoginID = txtUserName.Text;
     userInfo.usm_cPasswork = txtPwd.Text;
     try
     {
         msg = objILoginFormBL.Login(userInfo);
         if (msg.boolValue == true)
         {
             Session["UserInfo"] = userInfo;
             Response.Redirect("~/Main.aspx");
         }
         else
         {
             Session["UserInfo"] = null;
             txtPwd.Focus();
             txtPwd.Text = string.Empty;
             lblMsg.Text = msg.messageText.Trim();
         }
     }
     catch (Exception ex)
     {
         lblMsg.Text = "系統異常:" + getShortCutErrMsgDesc(ex);
     }
 }
开发者ID:Klutzdon,项目名称:PBIMSN,代码行数:28,代码来源:Logon.aspx.cs

示例5: Save

 public Model.General.ReturnValueInfo Save(Model.IModel.IModelObject itemEntity, Common.DefineConstantValue.EditStateEnum EditMode)
 {
     ReturnValueInfo rvInfo = new ReturnValueInfo();
     try
     {
         BlacklistChangeRecord_blc_Info recordInfo = itemEntity as BlacklistChangeRecord_blc_Info;
         if (recordInfo == null)
         {
             rvInfo.isError = true;
             rvInfo.messageText = Common.DefineConstantValue.SystemMessageText.strMessageText_E_ObjectNull;
             return rvInfo;
         }
         switch (EditMode)
         {
             case Common.DefineConstantValue.EditStateEnum.OE_Insert:
                 return this._IBlacklistChangeRecordDA.InsertRecord(recordInfo);
                 break;
             case Common.DefineConstantValue.EditStateEnum.OE_Update:
                 return this._IBlacklistChangeRecordDA.UpdateRecord(recordInfo);
                 break;
             case Common.DefineConstantValue.EditStateEnum.OE_Delete:
                 return this._IBlacklistChangeRecordDA.DeleteRecord(recordInfo);
                 break;
             default:
                 break;
         }
     }
     catch (Exception ex)
     {
         rvInfo.messageText = ex.Message;
         rvInfo.isError = true;
     }
     return rvInfo;
 }
开发者ID:Klutzdon,项目名称:SIOTS_HHZX,代码行数:34,代码来源:BlacklistChangeRecordBL.cs

示例6: DeleteRecord

        public ReturnValueInfo DeleteRecord(ProjectStopReason_pjsr_Info reasonInfo)
        {
            ReturnValueInfo returnInfo = new ReturnValueInfo(false);

            if (reasonInfo != null)
            {
                try
                {
                    using (MainDBDataContext db = new MainDBDataContext())
                    {
                        ProjectStopReason_pjsr deleteData = db.ProjectStopReason_pjsr.FirstOrDefault(t => t.pjsr_RecordID == reasonInfo.pjsr_RecordID);

                        if (deleteData != null)
                        {
                            db.ProjectStopReason_pjsr.DeleteOnSubmit(deleteData);

                            db.SubmitChanges();

                            returnInfo.boolValue = true;
                        }
                    }
                }
                catch (Exception Ex)
                {

                    returnInfo.messageText = Ex.Message;
                }
            }

            return returnInfo;
        }
开发者ID:Klutzdon,项目名称:PBIMSN,代码行数:31,代码来源:ProjectStopReasonDA.cs

示例7: Save

 public ReturnValueInfo Save(IModelObject itemEntity, Common.DefineConstantValue.EditStateEnum EditMode)
 {
     ReturnValueInfo rvInfo = new ReturnValueInfo();
     try
     {
         switch (EditMode)
         {
             case Common.DefineConstantValue.EditStateEnum.OE_Insert:
                 rvInfo = this._IPreRechargeRecordDA.InsertRecord(itemEntity as PreRechargeRecord_prr_Info);
                 break;
             case Common.DefineConstantValue.EditStateEnum.OE_Update:
                 rvInfo = this._IPreRechargeRecordDA.UpdateRecord(itemEntity as PreRechargeRecord_prr_Info);
                 break;
             case Common.DefineConstantValue.EditStateEnum.OE_Delete:
                 rvInfo = this._IPreRechargeRecordDA.DeleteRecord(itemEntity);
                 break;
             default:
                 break;
         }
     }
     catch (Exception ex)
     {
         rvInfo.isError = true;
         rvInfo.messageText = ex.Message;
     }
     return rvInfo;
 }
开发者ID:Klutzdon,项目名称:SIOTS_HHZX,代码行数:27,代码来源:PreRechargeRecordBL.cs

示例8: DeleteRecord

        public ReturnValueInfo DeleteRecord(IModelObject KeyObject)
        {
            ReturnValueInfo returnInfo = new ReturnValueInfo(false);

            PaymentUDMealState_pms_Info deleteInfo = KeyObject as PaymentUDMealState_pms_Info;

            if (deleteInfo != null)
            {
                try
                {
                    using (SIOTSDB_HHZXDataContext db = new SIOTSDB_HHZXDataContext())
                    {
                        PaymentUDMealState_pms deleteData = db.PaymentUDMealState_pms.FirstOrDefault(t => t.pms_cRecordID == deleteInfo.pms_cRecordID);

                        if (deleteData != null)
                        {
                            db.PaymentUDMealState_pms.DeleteOnSubmit(deleteData);

                            db.SubmitChanges();

                            returnInfo.boolValue = true;
                        }
                    }
                }
                catch (Exception Ex)
                {

                    returnInfo.messageText = Ex.Message;
                }
            }

            return returnInfo;
        }
开发者ID:Klutzdon,项目名称:SIOTS_HHZX,代码行数:33,代码来源:PaymentUDMealStateDA.cs

示例9: Delete

        public ReturnValueInfo Delete(SysMonitoring objInfo)
        {
            ReturnValueInfo returnInfo = new ReturnValueInfo(false);
            try
            {
                using (MainDBDataContext db = new MainDBDataContext())
                {
                    var delTab = db.SystemMonitoring_sym.Where(t => t.sym_MACAddress == objInfo.sym_MACAddress);
                    if (delTab != null)
                    {
                        foreach (var item in delTab)
                        {
                            db.SystemMonitoring_sym.DeleteOnSubmit(item);
                        }

                        db.SubmitChanges();
                        returnInfo.boolValue = true;
                    }
                }
            }
            catch (Exception Ex)
            {
                returnInfo.messageText = Ex.Message;
            }
            return returnInfo;
        }
开发者ID:Klutzdon,项目名称:PBIMSN,代码行数:26,代码来源:SysMonitoringDA.cs

示例10: InsertRecord

 public Model.General.ReturnValueInfo InsertRecord(Model.HHZX.ConsumerDevice.ConsumeMachineMaster_cmm_Info infoObject)
 {
     ReturnValueInfo rvInfo = new ReturnValueInfo();
     try
     {
         if (infoObject != null)
         {
             using (SIOTSDB_HHZXDataContext db = new SIOTSDB_HHZXDataContext())
             {
                 ConsumeMachineMaster_cmm record = Common.General.CopyObjectValue<ConsumeMachineMaster_cmm_Info, ConsumeMachineMaster_cmm>(infoObject);
                 if (record != null)
                 {
                     db.ConsumeMachineMaster_cmm.InsertOnSubmit(record);
                     db.SubmitChanges();
                     rvInfo.boolValue = true;
                     rvInfo.ValueObject = infoObject;
                 }
                 else
                 {
                     rvInfo.messageText = "TransEntity is null";
                 }
             }
         }
         else
         {
             rvInfo.messageText = Common.DefineConstantValue.SystemMessageText.strMessageText_E_ObjectNull;
         }
     }
     catch (Exception ex)
     {
         rvInfo.isError = true;
         rvInfo.messageText = ex.Message;
     }
     return rvInfo;
 }
开发者ID:Klutzdon,项目名称:SIOTS_HHZX,代码行数:35,代码来源:ConsumeMachineDA.cs

示例11: ShowForm

 public void ShowForm(ReturnValueInfo valueInfo)
 {
     //KeyBoard.OpenKeyBoard();
     _valueInfo = valueInfo;
     this.ShowDialog();
     tbxPwd.SelectAll();
     tbxPwd.Focus();
 }
开发者ID:Klutzdon,项目名称:SIOTS_HHZX,代码行数:8,代码来源:CloseWin.cs

示例12: SysFormMaster

        public SysFormMaster()
        {
            InitializeComponent();

            _iRecordID = string.Empty;
            _msg = new ReturnValueInfo();
            _pCode = string.Empty;
            this._ISysFormMasterBL = MasterBLLFactory.GetBLL<ISysFormMasterBL>(MasterBLLFactory.SysFormMaster);
            this._ISysFunctionMasterBL = MasterBLLFactory.GetBLL<ISysFunctionMasterBL>(MasterBLLFactory.SysFunctionMaster);
        }
开发者ID:Klutzdon,项目名称:SIOTS_HHZX,代码行数:10,代码来源:SysFormMaster.cs

示例13: DeleteRecord

        public ReturnValueInfo DeleteRecord(IModelObject KeyObject)
        {
            ReturnValueInfo returnInfo = new ReturnValueInfo(false);

            GradeMaster_gdm_Info deleteInfo = KeyObject as GradeMaster_gdm_Info;

            if (deleteInfo != null)
            {
                try
                {
                    using (SIOTSDB_HHZXDataContext db = new SIOTSDB_HHZXDataContext())
                    {
                        GradeMaster_gdm deleteData = db.GradeMaster_gdm.FirstOrDefault(t => t.gdm_cRecordID == deleteInfo.gdm_cRecordID);

                        if (deleteData != null)
                        {
                            IEnumerable<ClassMaster_csm> classe = from t in db.ClassMaster_csm
                                                                  where t.csm_cGDMID == deleteInfo.gdm_cRecordID
                                                                  select t;

                            if (classe != null && classe.Count() > 0)
                            {
                                returnInfo.messageText = Common.DefineConstantValue.SystemMessageText.strMessageText_E_DeleteObjectHaveContectData;
                            }
                            else
                            {
                                db.GradeMaster_gdm.DeleteOnSubmit(deleteData);

                                db.SubmitChanges();

                                returnInfo.boolValue = true;
                            }
                        }
                        else
                        {
                            returnInfo.messageText = Common.DefineConstantValue.SystemMessageText.strMessageText_E_DeleteDataNull;
                        }
                    }
                }
                catch (Exception Ex)
                {

                    returnInfo.messageText = Ex.Message;
                }
            }
            else
            {
                returnInfo.messageText = Common.DefineConstantValue.SystemMessageText.strMessageText_E_DeleteDataNull;
            }

            return returnInfo;
        }
开发者ID:Klutzdon,项目名称:SIOTS_HHZX,代码行数:52,代码来源:GradeMasterDA.cs

示例14: AccountCashReFund

 public ReturnValueInfo AccountCashReFund(IModelObject infoObject, string strReason)
 {
     ReturnValueInfo rvInfo = new ReturnValueInfo();
     try
     {
         rvInfo = this._ICardUserAccountDA.AccountCashReFund(infoObject, strReason);
     }
     catch (Exception ex)
     {
         rvInfo.isError = true;
         rvInfo.messageText = ex.Message;
     }
     return rvInfo;
 }
开发者ID:Klutzdon,项目名称:SIOTS_HHZX,代码行数:14,代码来源:CardUserAccountBL.cs

示例15: AddWhitelist

 public override ReturnValueInfo AddWhitelist(string strCardNo)
 {
     ReturnValueInfo rvInfo = new ReturnValueInfo();
     try
     {
         rvInfo.boolValue = this._Device.ER_SetSigleNameList(strCardNo, EastRiverDevice_base.ER_ListType.AttendanceWhiteList);
     }
     catch (Exception ex)
     {
         rvInfo.isError = true;
         rvInfo.messageText = ex.Message;
     }
     return rvInfo;
 }
开发者ID:Klutzdon,项目名称:SIOTS_HHZX,代码行数:14,代码来源:EastRiverDevice.cs


注:本文中的Model.General.ReturnValueInfo类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。