| | |
| | | public string sOrderSql2 = ""; |
| | | public string sKeyCol2 = ""; |
| | | public string sShowItemSql2 = ""; |
| | | public DAL.frmHlpBillList oFrm = new DAL.frmHlpBillList(); |
| | | public frmHlpBillList oFrm; |
| | | //public DAL.frmHlpBillList oFrm = new DAL.frmHlpBillList(); |
| | | public List<DBUtility.BillSelect> oBillSelectColl = new List<DBUtility.BillSelect>(); |
| | | public List<DBUtility.BillSelect_A3> oBillSelectColl2 = new List<DBUtility.BillSelect_A3>(); |
| | | // |
| | |
| | | tSQL = sWhere + sCondtion + sOrderSql; |
| | | try |
| | | { |
| | | oFrm = new frmHlpBillList(); |
| | | oFrm.sPrimaryCol = sKeyCol; |
| | | oFrm.Text = mvarReportTitle; |
| | | oFrm.lblCaption.Text = mvarReportTitle; |
| | |
| | | tSQL = sWhere + sCondtion2 + sOrderSql2; |
| | | try |
| | | { |
| | | oFrm = new frmHlpBillList(); |
| | | oFrm.sPrimaryCol = sKeyCol2; |
| | | oFrm.Text = mvarReportTitle2; |
| | | oFrm.lblCaption.Text = mvarReportTitle2; |
| | |
| | | tSQL = sWhere + sCondtion2 + sOrderSql2; |
| | | try |
| | | { |
| | | oFrm = new frmHlpBillList(); |
| | | oFrm.sPrimaryCol = sKeyCol2; |
| | | oFrm.Text = mvarReportTitle2; |
| | | oFrm.lblCaption.Text = mvarReportTitle2; |
| | |
| | | tSQL = sWhere + sCondtion + sOrderSql; |
| | | try |
| | | { |
| | | oFrm = new frmHlpBillList(); |
| | | oFrm.sPrimaryCol = sKeyCol; |
| | | oFrm.Text = mvarReportTitle; |
| | | oFrm.lblCaption.Text = mvarReportTitle; |
| | |
| | | return true; |
| | | } |
| | | |
| | | //æ ¹æ®æºåå· æ¨¡ææ¥è¯¢æ°æ® |
| | | /// <summary> |
| | | /// æ¾ç¤ºæ°æ® |
| | | /// </summary> |
| | | /// <param name="sWhere">主SQL</param> |
| | | /// <param name="sCondtion">è¿æ»¤æ¡ä»¶</param> |
| | | /// <param name="sOrderSql">æåºæ¡ä»¶</param> |
| | | /// <param name="sKeyCol">ä¸å¯éå¤å</param> |
| | | /// <returns></returns> |
| | | public virtual bool RefreshBySourceBillNo(string sWhere) |
| | | { |
| | | string sErr = ""; |
| | | string tSQL; |
| | | ClsCN oCn = new ClsCN(); |
| | | tSQL = " select hmainid,hsubid,åæ®å· from " + ViewName + sWhere + sOrderSql; |
| | | try |
| | | { |
| | | DataSet ds = oCn.RunProcReturn(tSQL, ViewName, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | if (ds == null || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | return false; |
| | | } |
| | | //è¿åæ°æ®å°éåä¸ |
| | | oBillSelectColl.Clear(); |
| | | |
| | | //å¾ªç¯ éä¸è¡ |
| | | for (int i = 0; i < ds.Tables[0].Rows.Count; i++) |
| | | { |
| | | BillSelect oSelect = new BillSelect(); |
| | | oSelect.BillNo = ClsPub.isStrNull(ds.Tables[0].Rows[i]["åæ®å·"]); |
| | | oSelect.BillMainID = ClsPub.isLong(ds.Tables[0].Rows[i]["hmainid"]); |
| | | oSelect.BillSubID = ClsPub.isLong(ds.Tables[0].Rows[i]["hsubid"]); |
| | | oSelect.BillTitle = mvarReportTitle; |
| | | oSelect.BillType = mvarItemKey; |
| | | oBillSelectColl.Add(oSelect); |
| | | } |
| | | // |
| | | if (oBillSelectColl.Count > 0) |
| | | return true; |
| | | else |
| | | return false; |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | sErr = e.Message; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |