Пример #1
0
 /// <summary>
 /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
 /// </summary>
 public override void IniData()
 {
     this.HTDataTableName = "Sale_DYGL";
     this.HTDataList      = gridView1;
     Common.BindCLS(drpDYXZ, "Sale_DYGL", "DYXZ", true);
     Common.BindDYStatus(drpDYStatusID, true);
     txtQIndateS.DateTime = DateTime.Now.AddMonths(-1).Date;
     txtQIndateE.DateTime = DateTime.Now.Date;
     if (GBDYStatusProc.ColorIniFlag)
     {
         GBDYStatusProc.ColorIniTextBox(new TextBox[] { txtColorStatus1, txtColorStatus2, txtColorStatus3 });
     }
 }
Пример #2
0
 private void gridView1_RowCellStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
 {
     try
     {
         if (e.Column.FieldName == "DYName")
         {
             e.Appearance.BackColor = GBDYStatusProc.GetGridRowBackColor(SysConvert.ToString(gridView1.GetRowCellValue(e.RowHandle, "DYName")));
         }
     }
     catch (Exception E)
     {
         this.ShowMessage(E.Message);
     }
 }
Пример #3
0
 /// <summary>
 /// 数据初始化(填写表名、绑定控制、初始化界面属性等)
 /// </summary>
 public override void IniData()
 {
     this.HTDataTableName = "Sale_DYGL";
     this.HTDataList      = gridView1;
     Common.BindCLS(drpDYXZ, "Sale_DYGL", "DYXZ", true);
     Common.BindDYStatus(drpDYStatusID, true);
     txtQIndateS.DateTime = DateTime.Now.AddMonths(-1).Date;
     txtQIndateE.DateTime = DateTime.Now.Date;
     if (GBDYStatusProc.ColorIniFlag)
     {
         GBDYStatusProc.ColorIniTextBox(new TextBox[] { txtColorStatus1, txtColorStatus2, txtColorStatus3 });
     }
     gridView1.OptionsBehavior.ShowEditorOnMouseUp = false;
     btnQuery_Click(null, null);
 }