| | |
| | | string sSql = ""; |
| | | string sWhere = ""; |
| | | |
| | | bzd.Enabled = true; |
| | | if (frmCondition.SqlStr.Trim().Length == 0) |
| | | { |
| | | sSql = "Select top 5000 * from " + ViewName + " Where 1=1 " + sWhere + sDlgWhere + " order by hmainid desc "; |
| | |
| | | |
| | | private void bzd_Click(object sender, EventArgs e) |
| | | { |
| | | //ç¹å»åå
¥åºæé®åç° |
| | | bzd.Enabled = false; |
| | | //æ ¹æ®éä¸çæ°æ®çæå
è£
å |
| | | int MainIDCol = Fun_GetCol("hmainid"); |
| | | int SubIDCol = Fun_GetCol("hsubid"); |
| | |
| | | if (oSystemParameter.ShowBill(ref DBUtility.ClsPub.sExeReturnInfo) == false) |
| | | { |
| | | MessageBox.Show("è·åç³»ç»åæ°å¤±è´¥ï¼ " + DBUtility.ClsPub.sExeReturnInfo); |
| | | bzd.Enabled = true; |
| | | return; |
| | | } |
| | | //夿ä¼è®¡ææ¯å¦åç |
| | |
| | | if (DBUtility.Xt_BaseBillFun.Fun_AllowYearPeriod(DateTime.Today, ref sYear, ref sPeriod, ref s) == false) |
| | | { |
| | | MessageBox.Show("ä¼è®¡æé´æéè¯¯ï¼ " + DBUtility.ClsPub.sExeReturnInfo); |
| | | bzd.Enabled = true; |
| | | return; |
| | | } |
| | | string sHInterID = ""; |
| | |
| | | if (sHInterID=="") |
| | | { |
| | | MessageBox.Show("没æéä¸çåæ®æç»è¡ï¼è¯·å
éæ©è¦å
¥åºçåæ®ï¼", "æç¤º"); |
| | | bzd.Enabled = true; |
| | | return; |
| | | } |
| | | else |
| | |
| | | if (DS == null || DS.Tables[0].Rows.Count == 0) |
| | | { |
| | | MessageBox.Show("å
¥åºåå¤æå¤±è´¥ï¼", "æç¤º"); |
| | | bzd.Enabled = true; |
| | | return; |
| | | } |
| | | else |
| | |
| | | if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0][0]) == "1") |
| | | { |
| | | MessageBox.Show(DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HRemark"])); |
| | | bzd.Enabled = true; |
| | | return; |
| | | } |
| | | } |
| | |
| | | System.Threading.Thread.Sleep(2000); |
| | | // |
| | | } |
| | | bzd.Enabled = true; |
| | | // |
| | | if (n > 0) |
| | | { |