| | |
| | | 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(); |
| | | private void cx_Click(object sender, EventArgs e) |
| | | { |
| | |
| | | } |
| | | // |
| | | grdMain.DataSource = DSet.Tables[0].DefaultView; |
| | | // |
| | | grdMain.RowHeadersVisible = false; |
| | | ////设置å计å |
| | | 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(); |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// ç½æ ¼ 导åºEXCEL ç½æ ¼ï¼æä»¶åï¼æ é¢å |
| | | /// </summary> |
| | |
| | | { |
| | | |
| | | } |
| | | |
| | | private void Gy_BarCodeMain_Load(object sender, EventArgs e) |
| | | { |
| | | oSumGrid.ogrdMain = grdMain; //åå§å new |
| | | oSumGrid.oGridsum = grdSum; |
| | | } |
| | | } |
| | | } |