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


C# RMS类代码示例

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


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

示例1: GetButtonColor

        public CResult GetButtonColor(RMS.Common.ObjectModel.CButtonColor inCat)
        {
            CResult oResult = new CResult();
            try
            {
                this.OpenConnection();
                string sSql = string.Format(SqlQueries.GetQuery(Query.GetButtonColor), inCat.ButtonID);
                IDataReader oReader = this.ExecuteReader(sSql);
                if (oReader != null)
                {
                    if (oReader.Read())
                    {
                        inCat = ReaderToButtonColor(oReader);

                        oResult.Data = inCat;

                        oResult.IsSuccess = true;
                    }
                }
            }
            catch (Exception ex)
            {
                Logger.Write("Exception : " + ex + " in ItemGetById()", LogLevel.Error, "Database");

                oResult.IsException = true;
            }
            finally
            {
                this.CloseConnection();
            }
            return oResult;
        }
开发者ID:Jusharra,项目名称:RMS,代码行数:32,代码来源:CButtonColorDAO.cs

示例2: AddButtonColor

        public CResult AddButtonColor(RMS.Common.ObjectModel.CButtonColor inUser)
        {
            CResult oResult = new CResult();

            inUser.ButtonName = inUser.ButtonName.Replace("''", "'");
            inUser.ButtonName = inUser.ButtonName.Replace("'", "''");
            try
            {
                this.OpenConnection();
                string sSql = String.Format(SqlQueries.GetQuery(Query.AddButtonColor), inUser.ButtonName, inUser.ButtonColor, RMSGlobal.LogInUserName, DateTime.Now.Ticks);

                this.ExecuteNonQuery(sSql);

                oResult.IsSuccess = true;
            }
            catch (Exception ex)
            {
                Logger.Write("Exception : " + ex + " in ItemInsert() in CUserInfoDAO class", LogLevel.Error, "Database");

                //throw new Exception("Exception occure at ItemInsert()", ex);
            }
            finally
            {
                this.CloseConnection();
            }
            return oResult;
        }
开发者ID:Jusharra,项目名称:RMS,代码行数:27,代码来源:CButtonColorDAO.cs

示例3: FormDATAENTRY

        public FormDATAENTRY(DELIVERYORDER.FormDAFTARSTT _frm,int Type,
            RMS.COMMON.DELIVERYORDER.RMS_DETAILINVOICE obj, RMS.COMMON.MASTER.RMS_USER user)
        {
            InitializeComponent();
            INIT_PERUSAHAAN();
            SET_PRINT();
            cUser = user;
            this.frm = _frm;
            this.Type = Type;
            setDIM();

            if (cUser.isbiayastt)
            {
                panelBIAYA.Visible = true;
            }
            else
            {
                panelBIAYA.Visible = false;
            }

            if (Type == 0)
            {
                cboINSURANCE.Text = "0";
                txtNOCONNOTE.Text = GETKODE();
                cboTERMOFPAYMENT.Text = "PREPAID";
            }
            else
            {
                c.ID = obj.ID;
                LOAD_DATA(obj);

            }
        }
开发者ID:rhizalpatrax64bit,项目名称:logistic-management-system,代码行数:33,代码来源:FormDATAENTRY.cs

示例4: UpdateButtonColor

        public CResult UpdateButtonColor(RMS.Common.ObjectModel.CButtonColor inUser)
        {
            CResult oResult = new CResult();

            try
            {
                this.OpenConnection();
                string sSql = String.Format(SqlQueries.GetQuery(Query.UpdateButtonColor), inUser.ButtonColor, inUser.ButtonID, inUser.CurrentUserId, inUser.LoginDateTime);

                this.ExecuteNonQuery(sSql);

                oResult.IsSuccess = true;
            }
            catch (Exception ex)
            {
                Logger.Write("Exception : " + ex + " in ItemInsert() in CUserInfoDAO class", LogLevel.Error, "Database");

                //throw new Exception("Exception occure at ItemInsert()", ex);
            }
            finally
            {
                this.CloseConnection();
            }
            return oResult;
        }
开发者ID:Jusharra,项目名称:RMS,代码行数:25,代码来源:CButtonColorDAO.cs

示例5: UpdatePrintStyle

        public RMS.Common.ObjectModel.CResult UpdatePrintStyle(RMS.Common.ObjectModel.CPrintStyle inUser)
        {
            CResult oResult = new CResult();

            try
            {
                this.OpenConnection();
                string sSql = String.Format(SqlQueries.GetQuery(Query.UpdatePrintStyle), inUser.Header, inUser.Body, inUser.Footer, inUser.StyleID);

                this.ExecuteNonQuery(sSql);

                oResult.IsSuccess = true;
            }
            catch (Exception ex)
            {
                Logger.Write("Exception : " + ex + " in ItemInsert() in CUserInfoDAO class", LogLevel.Error, "Database");

                oResult.IsException = true;

                //throw new Exception("Exception occure at ItemInsert()", ex);
            }
            finally
            {
                this.CloseConnection();
            }
            return oResult;
        }
开发者ID:Jusharra,项目名称:RMS,代码行数:27,代码来源:CPrintStyleDAO.cs

示例6: GET_DATA_KOTATERUSAN

        public void GET_DATA_KOTATERUSAN(RMS.COMMON.MASTER.RMS_PRICELIST obj)
        {
            txtKODETERUSAN.Text = obj.KODEATERUSAN;
            txtNAMATERUSAN.Text = obj.NAMATERUSAN;

            c.IDTERUSAN = obj.IDTERUSAN;
        }
开发者ID:rhizalpatrax64bit,项目名称:logistic-management-system,代码行数:7,代码来源:FormPRICELIST.cs

示例7: Cat1Delete

        public CResult Cat1Delete(RMS.Common.ObjectModel.CCategory1 oCat)
        {
            CResult objResult = new CResult();

            try
            {
                this.OpenConnection();
                string sSql = string.Format(SqlQueries.GetQuery(Query.DeleteCategory1), oCat.Category1ID);
                this.ExecuteNonQuery(sSql);

                objResult.IsSuccess = true;
            }
            catch (Exception ex)
            {
                Logger.Write("Exception : " + ex + " in ItemDelete()", LogLevel.Error, "Database");
                objResult.Message = ex.Message;
                objResult.IsException = true;
            }
            finally
            {
                this.CloseConnection();
            }

            return objResult;
        }
开发者ID:Jusharra,项目名称:RMS,代码行数:25,代码来源:CCategory1DAO.cs

示例8: FormVIEWPRICELISTCUSTOMER

 public FormVIEWPRICELISTCUSTOMER(DELIVERYORDER.FormDATAENTRY _frm, RMS.COMMON.DELIVERYORDER.RMS_DETAILINVOICE obj)
 {
     InitializeComponent();
     this.frm = _frm;
     c.IDCUSTOMER = obj.IDCUSTOMER;
     c.NAMACUSTOMER = obj.NAMACUSTOMER;
     lblCUSTOMER.Text = obj.NAMACUSTOMER;
     LOAD_DATA();
 }
开发者ID:rhizalpatrax64bit,项目名称:logistic-management-system,代码行数:9,代码来源:FormVIEWPRICELISTCUSTOMER.cs

示例9: GET_DATA_CUSTOMER

 public void GET_DATA_CUSTOMER(RMS.COMMON.MASTER.RMS_CUSTOMER obj)
 {
     c.IDCUSTOMER = obj.ID;
     txtKODECUSTOMER.Text = obj.KODE;
     txtNAMACUSTOMER.Text = obj.NAMACUSTOMER;
     txtALAMATPENGIRIM.Text = obj.ALAMAT;
     txtPHONEPENGIRIM.Text = obj.TELEPON;
     txtHPPENGIRIM.Text = obj.HP;
 }
开发者ID:rhizalpatrax64bit,项目名称:logistic-management-system,代码行数:9,代码来源:FormENTRYSO.cs

示例10: MainForm

        public MainForm(RMS.COMMON.MASTER.RMS_USER obj)
        {
            InitializeComponent();
            //cUser = obj;
            cUser = obj;

            LOAD_PC();
               // SETTING();
        }
开发者ID:rhizalpatrax64bit,项目名称:logistic-management-system,代码行数:9,代码来源:FormRETAIL.cs

示例11: DecodePassword

        public string DecodePassword(RMS.COMMON.MASTER.RMS_USER obj)
        {
            string decode;
            using (Database db = new Database())
            {
                decode = db.DecodePassword(obj.password);

            }
            return decode;
        }
开发者ID:rhizalpatrax64bit,项目名称:logistic-management-system,代码行数:10,代码来源:RMS_USER.cs

示例12: FormDEPARTMENT

 public FormDEPARTMENT(MASTER.FormDEPARTMENT _frm, int Type, RMS.COMMON.MASTER.RMS_DEPARTMENT obj)
 {
     this.frm = _frm;
     this.Type = Type;
     InitializeComponent();
     if (Type == 1)
     {
         LOAD_DATA(obj);
     }
 }
开发者ID:rhizalpatrax64bit,项目名称:logistic-management-system,代码行数:10,代码来源:FormDEPARTMENT.cs

示例13: FormAREA

        public FormAREA(MASTER.FormKOTA _frm, int Type, RMS.COMMON.MASTER.RMS_KOTA obj)
        {
            InitializeComponent();
            this.frm = _frm;
            this.Type = Type;

            if (Type == 1)
            {
                LOAD_DATA(obj);
            }
        }
开发者ID:rhizalpatrax64bit,项目名称:logistic-management-system,代码行数:11,代码来源:FormAREA.cs

示例14: FormPENERIMA

 public FormPENERIMA(MASTER.FormPENERIMA _frm, int _Type, RMS.COMMON.MASTER.RMS_PENERIMA obj)
 {
     InitializeComponent();
     this.frm = _frm;
     this.Type = _Type;
     cboTYPE.Text = "RETAIL";
     if (Type == 1)
     {
         LOAD_DATA(obj);
     }
 }
开发者ID:rhizalpatrax64bit,项目名称:logistic-management-system,代码行数:11,代码来源:FormPENERIMA.cs

示例15: FormGUDANG

        public FormGUDANG(MASTER.FormGUDANG _frm, int Type, RMS.COMMON.MASTER.RMS_GUDANG obj)
        {
            InitializeComponent();
            this.Type = Type;
            this.frm = _frm;

            if (Type == 1)
            {
                LOAD_DATA(obj);
            }
        }
开发者ID:rhizalpatrax64bit,项目名称:logistic-management-system,代码行数:11,代码来源:FormGUDANG.cs


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