| | |
| | | } |
| | | else |
| | | { |
| | | string s = ""; |
| | | if (BillOld.ShowBill(oBill.omodel.HInterID, ref s) == false) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "此单据有误!"; |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | //判断是否可编辑 |
| | | if (oBill.omodel.HChecker != "" && oBill.omodel.HChecker != null) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "此单据已经被审核,不允许修改!"; |
| | | objJsonResult.data = 1; |
| | | return objJsonResult; |
| | | } |
| | | bResult = oBill.ModifyBill(oBill.omodel.HInterID, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | } |
| | | if (bResult) |
| | |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region [设备保养计划表删除功能] |
| | | /// <summary> |
| | | /// 模具维修单删除功能 |
| | |
| | | return new ApiResult<DataSet> { code = 1, msg = "查询成功", data = dataSet }; |
| | | } |
| | | #endregion |
| | | |
| | | #region[设备保养计划表编辑时获取表体数据(保养子表、配件子表)] |
| | | [Route("Sb_EquipMaintainBill/Sb_EquipMaintainBillListProjectDetai")] |
| | | [HttpGet] |
| | |
| | | DBUtility.ClsPub.CurUserName = oItem.HMaker; //制单人 |
| | | oItem.HBillType = "3901"; |
| | | oItem.HBillSubType = "3901"; |
| | | |
| | | //oItem.HInterID =0; |
| | | |
| | | //oItem.HBillNo = ""; |
| | | oItem.HDate = DBUtility.ClsPub.isDate(DateTime.Now.ToString("yyyy-MM-dd"));// --日期 |
| | | oItem.HYear = DBUtility.ClsPub.isLong(DateTime.Now.Year); |