| | |
| | | public const string ModName = "1250";
|
| | | public string sDlgWhere = ""; //å¤çªä½éå
¥
|
| | | public int selectRow = 0;
|
| | | Pub_Class.ClsGridListSum oSumGrid = new Pub_Class.ClsGridListSum();
|
| | | SCM.WMSWeb.WebService1 oWeb = new SCM.WMSWeb.WebService1();
|
| | | /// <summary>
|
| | | /// æ¥è¯¢
|
| | |
| | | var dt = AddDatable(DSet.Tables[0]);
|
| | | //
|
| | | grdMain.DataSource = dt.DefaultView;
|
| | | grdMain.RowHeadersVisible = false;
|
| | | //å»ç»
|
| | | //int FrCol = DBUtility.ClsPub.isInt(frmCondition.txtFrozenCol.Text);
|
| | | //string s = frmCondition.cmbHComplete.Text;
|
| | | //ClsPub1.DisplayGrid(grdMain, this.Name, s, FrCol);
|
| | |
|
| | | ////设置å计å
|
| | | string sTotalCol = "";
|
| | | sTotalCol = DBUtility.Gy_BaseFun.GetTotalCols(DSet);
|
| | | string[] sT;
|
| | | sT = sTotalCol.Split(Convert.ToChar(","));
|
| | | oSumGrid.BuildTotalCols(sT);
|
| | | Total();
|
| | |
|
| | | }
|
| | |
|
| | | //å计 new
|
| | | private void Total()
|
| | | {
|
| | | if (grdMain.Rows.Count > 0 && grdMain.ColumnCount > 0)
|
| | | {
|
| | | oSumGrid.SetGridsum();
|
| | | oSumGrid.TotalAll();
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | public DataTable AddDatable(DataTable dt)
|
| | | {
|
| | | decimal tal = 0;
|
| | |
| | |
|
| | | private void grdMain_CellValueChanged(object sender, DataGridViewCellEventArgs e)
|
| | | {
|
| | | |
| | | |
| | | }
|
| | |
|
| | | private void Gy_BarCodeDetailList_Load(object sender, EventArgs e)
|
| | | {
|
| | | oSumGrid.ogrdMain = grdMain; //åå§å new
|
| | | oSumGrid.oGridsum = grdSum;
|
| | | }
|
| | | }
|
| | | }
|