本文整理汇总了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;
}
示例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;
}
示例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);
}
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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();
}
示例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;
}
示例10: MainForm
public MainForm(RMS.COMMON.MASTER.RMS_USER obj)
{
InitializeComponent();
//cUser = obj;
cUser = obj;
LOAD_PC();
// SETTING();
}
示例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;
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}