• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# RMS类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: GET_DATA

 public void GET_DATA(RMS.COMMON.MASTER.RMS_BARANG obj)
 {
     txtBARANG.Text = obj.NAMABARANG;
     txtKODE.Text = obj.KODEBARANG;
     txtBARCODE.Text = obj.BARCODE;
     txtKODESATUAN.Text = obj.KODESATUAN;
     txtNAMASATUAN.Text = obj.NAMASATUAN;
     txtKODEDEPT.Text = obj.KODEDEPT;
     txtNAMADEPT.Text = obj.NAMADEPT;
     txtQTYBELI1.Text = "0";
     txtQTYBELI2.Text = "0";
     txtQTYBONUS.Text = "0";
     txtTOTALPCS.Text = "0";
     txtTOTALPCSBNS.Text = "0";
     txtHARGABELI1.Text = "0";
     txtHARGABELI2.Text = "0";
     txtBRUTO.Text = "0";
     txtDSKNRP1.Text = "0";
     txtDSKNRP1A.Text = "0";
     txtDSKNRP2.Text = "0";
     txtDSKNRP2A.Text = "0";
     txtDSKNPSN1.Text = "0";
     txtDSKNPSN1A.Text = "0";
     txtDSKNPSN2.Text = "0";
     txtDSKNPSN2A.Text = "0";
     txtDSKNPSN3.Text = "0";
     txtDSKNPSN3A.Text = "0";
     txtDSKNPSN4.Text = "0";
     txtDSKNPSN4A.Text = "0";
     txtDSKNPSN5.Text = "0";
     txtDSKNPSN5A.Text = "0";
     txtPPN.Text = "0";
     txtPPNA.Text = "0";
     txtNETTO.Text = "0";
     txtHRGPKKBELI1.Text = "0";
     txtHRGPKKBELI2.Text = "0";
     txtMGNPROFIT1.Text = "0";
     txtMGNPROFIT1A.Text = "0";
     txtBTSMGN1.Text = obj.BATASMARGIN1.ToString();
     txtBTSMGN2.Text = obj.BATASMARGIN2.ToString();
     txtHARGAJUAL1.Text = "0";
     txtHARGAJUAL2.Text = "0";
     txtMGNSPESIAL.Text = "0";
     txtHARGASPESIAL.Text = "0";
     txtQTY1.Text = "0"; txtMGN1.Text = "0"; txtHARGA1.Text = "0";
     txtQTY2.Text = "0"; txtMGN2.Text = "0"; txtHARGA2.Text = "0";
     txtQTY3.Text = "0"; txtMGN3.Text = "0"; txtHARGA3.Text = "0";
     txtQTY4.Text = "0"; txtMGN4.Text = "0"; txtHARGA4.Text = "0";
     txtQTY5.Text = "0"; txtMGN5.Text = "0"; txtHARGA5.Text = "0";
     labelINFO1.Text = obj.NAMASATUAN;
     labelINFO3.Text = obj.NAMASATUAN;
     labelINFO4.Text = obj.NAMASATUAN;
     labelINFO6.Text = obj.NAMASATUAN;
 }
开发者ID:rhizalpatrax64bit,项目名称:logistic-management-system,代码行数:54,代码来源:FormADDITEMPEMBELIAN.cs


示例17: FormSALES

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

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


示例18: FormMARKETING

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


示例19: FormDAFTARSTT

        public FormDAFTARSTT(RMS.COMMON.MASTER.RMS_USER obj)
        {
            InitializeComponent();
            //this.setCOMBO();

            cUser = obj;
            SETTING_MANUAL();
            INIT_PERUSAHAAN();
            LOAD_DATA();
            LOAD_DATAUSER();
            myToolTip();
        }
开发者ID:rhizalpatrax64bit,项目名称:logistic-management-system,代码行数:12,代码来源:FormDAFTARSTT.cs


示例20: FormDRIVERHELPER

 public FormDRIVERHELPER(MASTER.FormDRIVER _frm, int _Type, RMS.COMMON.MASTER.RMS_DRIVER obj)
 {
     InitializeComponent();
     this.frm = _frm;
     this.Type = _Type;
     txtKODE.Text = GETKODE();
     txtKODE.ReadOnly = true;
     if (Type == 1)
     {
         LOAD_DATA(obj);
     }
 }
开发者ID:rhizalpatrax64bit,项目名称:logistic-management-system,代码行数:12,代码来源:FormDRIVERHELPER.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# RSACryptoServiceProvider类代码示例发布时间:2022-05-24
下一篇:
C# RHC类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap