Beispiel #1
0
 void BGV_ListRowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
 {
     if (e.Clicks >= 2 && (e.Column.FieldName.SameText("sale_foreign_amount") ||
                           e.Column.FieldName.SameText("sale_native_amount") ||
                           e.Column.FieldName.SameText("supply_foreign_amount") ||
                           e.Column.FieldName.SameText("supply_native_amount") ||
                           e.Column.FieldName.SameText("receipt_foreign_amount") ||
                           e.Column.FieldName.SameText("receipt_native_amount") ||
                           e.Column.FieldName.SameText("consign_foreign_amount") ||
                           e.Column.FieldName.SameText("consign_native_amount")))
     {
         Controller.MakeDetailCndt(e.Column.FieldName, BGV_List.GetFocusedDataSourceRowIndex());
     }
 }
Beispiel #2
0
 void BGV_ListCustomDrawCell(object sender, DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs e)
 {
     // Added by gyc 2018-11-27 10:23:46  当该客户有预收、预付金额时,增加颜色标记
     if (e.Column == col_receipt_money)
     {
         if (Convert.ToDouble(BGV_List.GetDataRow(e.RowHandle)["receipt_money"]) > 0 &&
             e.RowHandle != BGV_List.GetRowHandle(BGV_List.GetFocusedDataSourceRowIndex()))
         {
             e.Appearance.ForeColor = Color.Black;
             e.Appearance.BackColor = Color.SkyBlue;
         }
     }
     else if (e.Column == col_consign_money)
     {
         if (Convert.ToDouble(BGV_List.GetDataRow(e.RowHandle)["consign_money"]) > 0 &&
             e.RowHandle != BGV_List.GetRowHandle(BGV_List.GetFocusedDataSourceRowIndex()))
         {
             e.Appearance.ForeColor = Color.Black;
             e.Appearance.BackColor = Color.SkyBlue;
         }
     }
     // End of Added
 }
Beispiel #3
0
 void MI_AdjustClick(object sender, EventArgs e)
 {
     Controller.CallAdjust(BGV_List.GetFocusedDataSourceRowIndex());
 }