| | |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | oSystemParameter.ShowBill(ref DBUtility.ClsPub.sErrInfo); |
| | | if(oSystemParameter.omodel.Sc_MESBeginWorkBill_FirstCheckCtl == "Y") |
| | | { |
| | | // 判断是否允许 未首检合格前开工 |
| | | DataSet ds = oCN.RunProcReturn($@"select top 1 * from QC_FirstPieceCheckBillMain |
| | | where HMainSourceBillType = '{HBillType}' and HMainSourceBillNo = '{HSourceBillNo}' |
| | | order by HDate desc", "QC_FirstPieceCheckBillMain"); |
| | | |
| | | if (ds == null || ds.Tables.Count == 0 || ds.Tables[0].Rows.Count == 0) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "检验首件检验失败,该单据没有做对印的首检单"; |
| | | |
| | | return objJsonResult; |
| | | } |
| | | |
| | | if (ds.Tables[0].Rows[0]["HLastResult"].ToString() == "0") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "首件检失败,首件检检验结果为不合格,不允许下推单据"; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | |
| | | |
| | | //判断会计期是否合理 |
| | | string s = ""; |
| | | int sYear = 0; |