| | |
| | | public class SB_EquipICMOTechParamBillController : ApiController |
| | | { |
| | | public DBUtility.ClsPub.Enum_BillStatus BillStatus; |
| | | Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter(); |
| | | public const string ModName = "3919"; //单据类型 |
| | | public const string ModCaption = "设备工艺参数订单点检表"; //单据名称 |
| | | public const string ModRightName = "SB_EquipICMOTechParamBill"; |
| | |
| | | oBill.DetailColl.Add(oItemSub); |
| | | } |
| | | |
| | | //保存 |
| | | bool bResult; |
| | | //获取系统参数 |
| | | string Ret = ""; |
| | | if (oSystemParameter.ShowBill(ref Ret)) |
| | | { |
| | | if (oSystemParameter.omodel.SB_EquipICMOTechParamBill_MustBeginWorkCtl == "Y") |
| | | { |
| | | ds = oCn.RunProcReturn("select * from Sc_ICMOBillStatus_Tmp where HSourceID = '" + oBill.omodel.HSourceID + "' and HICMOBillNo = '" + oBill.omodel.HICMOBillNo + "' and HInterID = '" + oBill.omodel.HICMOInterID + "' and hicmostatus =1", "Sc_ICMOBillStatus_Tmp"); |
| | | if (ds.Tables[0].Rows[0]["HICMOStatus"].ToString() != "1") |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "当前工单不是开工状态不能进行设备工艺参数点检!"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | } |
| | | |
| | | //保存 |
| | | bool bResult; |
| | | if (OperationType == "1") //新增保存 |
| | | { |
| | | bResult = oBill.AddBill (ref DBUtility.ClsPub.sExeReturnInfo); |