| | |
| | | /// <returns></returns> |
| | | [Route("Sb_EquipMaintainPlanBill/GetEquipMaintainPlanBillList")] |
| | | [HttpGet] |
| | | public object GetEquipMaintainPlanBillList(string sWhere,string user) |
| | | public object GetEquipMaintainPlanBillList(string sWhere, string user) |
| | | { |
| | | try |
| | | { |
| | |
| | | } |
| | | 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 (BillOld.omodel.HChecker != "" && BillOld.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) |
| | |
| | | /// <returns></returns> |
| | | [Route("Sb_EquipMaintainPlanBill/DeltetEquipMaintainPlanBillList")] |
| | | [HttpGet] |
| | | public object DeltetEquipMaintainPlanBillList(string HInterID,string user) |
| | | public object DeltetEquipMaintainPlanBillList(string HInterID, string user) |
| | | { |
| | | if (!DBUtility.ClsPub.Security_Log("Sb_EquipMaintainPlanBill_Delete", 1, false, user)) |
| | | { |
| | |
| | | [HttpGet] |
| | | public object Sb_EquipMaintainPlanBill_PlanList(string HInterID, string HDate) |
| | | { |
| | | DataSet ds,ds1; |
| | | DataSet ds, ds1; |
| | | try |
| | | { |
| | | SQLHelper.ClsCN oCN = new SQLHelper.ClsCN(); |
| | |
| | | objJsonResult.Message = "审核失败!原因:" + ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | } |
| | | |
| | | oCN.Commit();//提交事务 |
| | |
| | | objJsonResult.Message = "关闭失败!原因:" + DBUtility.ClsPub.sExeReturnInfo; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | } |
| | | else |
| | | { |
| | |
| | | #endregion |
| | | |
| | | #endregion |
| | | |
| | | } |
| | | } |