| | |
| | | private void bc_Click(object sender, EventArgs e) |
| | | { |
| | | this.Sub_SaveBill(); |
| | | Display(); |
| | | } |
| | | |
| | | //éç½®æçº½ |
| | |
| | | DBUtility.Xt_BaseBillFun.GetGrid(grdMain, this.Name); |
| | | DBUtility.Xt_BaseBillFun.GetGrid(grdSub, this.Name + "grdSub"); |
| | | grdSub.SelectionMode = DataGridViewSelectionMode.FullRowSelect; //éè¡æ¨¡å¼ |
| | | |
| | | //// |
| | | ClsPub1.initGridList(grdList, this.Name + "grdList"); |
| | | |
| | | //// |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | private void Display() |
| | | { |
| | | //ClsCN SubCn = new ClsCN(); |
| | | DataSet DSet; |
| | | string sSql = ""; |
| | | string sWhere = ""; |
| | | //è¿æ»¤æ¡ä»¶ |
| | | if(HInterID<=0) |
| | | { |
| | | return; |
| | | } |
| | | // |
| | | DSet = oWeb.getDataSetBySQL("select * from h_v_IF_BarCodeBillList Where HinterID=" + HInterID.ToString(), "h_v_IF_BarCodeBillList", ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //DSet = SubCn.RunProcReturn(sSql, ViewName, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //çæé¦è¡æ é¢ |
| | | if (DSet == null) |
| | | { |
| | | MessageBox.Show("没æè¿åä»»ä½ç»æ,æ¡ç ä¸åå¨ï¼" + DBUtility.ClsPub.sExeReturnInfo); |
| | | return; |
| | | } |
| | | // |
| | | grdList.DataSource = DSet.Tables[0].DefaultView; |
| | | //å»ç» |
| | | int FrCol = 0; |
| | | string s = "æ¯"; |
| | | ClsPub1.DisplayGrid(grdList, this.Name+ "grdList", s, FrCol); |
| | | //ç»çº¿ |
| | | //GraphLine(); |
| | | |
| | | |
| | | // |
| | | } |
| | | |
| | | //å
¬å¼éç® |
| | | private void RowCount(int sRow, int sTag) |
| | | { |
| | |
| | | Report.PrintPreview(false); |
| | | Thread.Sleep(1000); |
| | | } |
| | | |
| | | // |
| | | Display(); |
| | | } |
| | | |
| | | //æå°å夿æ¡ç æ¯å¦å·²æå°è¿ |
| | |
| | | Report.Print(true); |
| | | Thread.Sleep(1000); |
| | | } |
| | | |
| | | // |
| | | Display(); |
| | | } |
| | | |
| | | #endregion |