| | |
| | | sr = CurNode.Text.Split(c); |
| | | HParentID = sr[0].ToString(); |
| | | } |
| | | //è¿æ»¤æ¡ä»¶ |
| | | if (HParentID == "" || HParentID == "ç©æèµæ" || HParentID == "å·¥åºèµæ") |
| | | if (frmCondition==null) |
| | | { |
| | | sSql = "Select top 10000 * from " + ViewName + " order by HItemID Desc"; |
| | | } |
| | | else |
| | | { |
| | | if (wl.Checked == false) |
| | | //è¿æ»¤æ¡ä»¶ |
| | | if (HParentID == "" || HParentID == "ç©æèµæ" || HParentID == "å·¥åºèµæ") |
| | | { |
| | | sSql = "Select top 10000 * from " + ViewName + " where å·¥åºä»£ç like '%" + HParentID.ToString() + "%' order by HItemID Desc"; |
| | | sSql = "Select top 10000 * from " + ViewName + " order by HItemID Desc"; |
| | | } |
| | | else |
| | | { |
| | | sSql = "Select top 10000 * from " + ViewName + " where ç©æä»£ç like '%" + HParentID.ToString() + "%' order by HItemID Desc "; |
| | | } |
| | | if (wl.Checked == false) |
| | | { |
| | | sSql = "Select top 10000 * from " + ViewName + " where å·¥åºä»£ç like '%" + HParentID.ToString() + "%' order by HItemID Desc"; |
| | | } |
| | | else |
| | | { |
| | | sSql = "Select top 10000 * from " + ViewName + " where ç©æä»£ç like '%" + HParentID.ToString() + "%' order by HItemID Desc "; |
| | | } |
| | | |
| | | } |
| | | } |
| | | else |
| | | { |
| | | sSql = frmCondition.SqlStr + sWhere + " order by " + ModName; |
| | | } |
| | | |
| | | //æ§è¡SQL |
| | | DSet = SubCn.RunProcReturn(sSql, ViewName); |
| | | |
| | |
| | | else |
| | | { |
| | | //å®¡æ ¸ |
| | | if (oItem.CheckBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) |
| | | { |
| | | MessageBox.Show("å®¡æ ¸æå!", "æç¤º"); |
| | | } |
| | | else |
| | | if (oItem.CheckBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) != true) |
| | | { |
| | | MessageBox.Show("å®¡æ ¸å¤±è´¥!", "æç¤º"); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | MessageBox.Show("å®¡æ ¸æåï¼è¯·å·æ°ï¼", "æç¤º"); |
| | | MessageBox.Show("å®¡æ ¸æå!", "æç¤º"); |
| | | Display(); |
| | | return; |
| | | } |
| | | //åå®¡æ ¸ |
| | |
| | | else |
| | | { |
| | | //å®¡æ ¸ |
| | | if (oItem.AbandonCheck(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true) |
| | | { |
| | | MessageBox.Show("åå®¡æ ¸æå!", "æç¤º"); |
| | | } |
| | | else |
| | | if (oItem.AbandonCheck(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) != true) |
| | | { |
| | | MessageBox.Show("åå®¡æ ¸å¤±è´¥!", "æç¤º"); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | MessageBox.Show("å®¡æ ¸æåï¼è¯·å·æ°ï¼", "æç¤º"); |
| | | MessageBox.Show("åå®¡æ ¸æå!", "æç¤º"); |
| | | Display(); |
| | | return; |
| | | } |
| | | |
| | |
| | | else |
| | | { |
| | | oCn.RunProc(" Update Gy_StdWorkTimes set HStopflag=1 Where HItemID=" + lngBillKey.ToString()); |
| | | |
| | | } |
| | | } |
| | | MessageBox.Show("ç¦ç¨æåï¼è¯·å·æ°ï¼", "æç¤º"); |
| | | MessageBox.Show("ç¦ç¨æåï¼", "æç¤º"); |
| | | Display(); |
| | | return; |
| | | } |
| | | |
| | |
| | | else |
| | | { |
| | | oCn.RunProc(" Update Gy_StdWorkTimes set HStopflag=0 Where HItemID=" + lngBillKey.ToString()); |
| | | |
| | | } |
| | | } |
| | | MessageBox.Show("åç¦ç¨æåï¼è¯·å·æ°ï¼", "æç¤º"); |
| | | MessageBox.Show("åç¦ç¨æåï¼", "æç¤º"); |
| | | Display(); |
| | | return; |
| | | } |
| | | } |