Example #1
0
        /// <summary>
        /// 主生产计划单插入
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static bool InsertMasterProductSchedule(MasterProductScheduleModel model, Hashtable ht, out string ID)
        {
            UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"];

            ID = "0";
            try
            {
                bool   succ        = false;
                string loginUserID = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).UserID;

                LogInfoModel logModel = InitLogInfo(model.PlanNo, 0);
                logModel.Element = ConstUtil.LOG_PROCESS_INSERT;

                succ = MasterProductScheduleDBHelper.InsertMasterProductSchedule(model, ht, loginUserID, out ID);
                if (!succ)
                {
                    logModel.Remark = ConstUtil.LOG_PROCESS_FAILED;
                }
                else
                {
                    logModel.Remark = ConstUtil.LOG_PROCESS_SUCCESS;
                }
                LogDBHelper.InsertLog(logModel);
                return(succ);
            }
            catch (Exception ex)
            {
                WriteSystemLog(userInfo, 0, ex);
                return(false);
            }
        }
Example #2
0
        /// <summary>
        /// 确认或结单
        /// </summary>
        /// <param name="model"></param>
        /// <param name="isConfirm"></param>
        /// <returns></returns>
        public static bool ConfirmOrCompleteMasterProductSchedule(MasterProductScheduleModel model, int OperateType)
        {
            string loginUserID = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).UserID;

            //string loginUserID = "admin";//[待修改]
            return(MasterProductScheduleDBHelper.ConfirmOrCompleteMasterProductSchedule(model, loginUserID, OperateType));
        }
Example #3
0
 /// <summary>
 /// 获取主生产计划单主表信息
 /// </summary>
 /// <returns>DataTable</returns>
 public static DataTable GetMasterProductScheduleInfo(MasterProductScheduleModel model)
 {
     try
     {
         return(MasterProductScheduleDBHelper.GetMasterProductScheduleInfo(model));
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Example #4
0
 /// <summary>
 /// 查询主生产计划单信息
 /// </summary>
 /// <param name="model">查询条件</param>
 /// <returns></returns>
 public static DataTable GetMasterProductScheduleListBycondition(MasterProductScheduleModel model, int FromBillID, int FlowStatus, string BillTypeFlag, string BillTypeCode, string EFIndex, string EFDesc, int pageIndex, int pageCount, string OrderBy, ref int totalCount)
 {
     try
     {
         return(MasterProductScheduleDBHelper.GetMasterProductScheduleListBycondition(model, FromBillID, FlowStatus, BillTypeFlag, BillTypeCode, EFIndex, EFDesc, pageIndex, pageCount, OrderBy, ref totalCount));
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Example #5
0
        /// <summary>
        /// 取消确认
        /// </summary>
        /// <param name="model"></param>
        /// <param name="isConfirm"></param>
        /// <returns></returns>
        public static bool CancelConfirmMasterProductSchedule(MasterProductScheduleModel model, int BillTypeFlag, int BillTypeCode)
        {
            string loginUserID = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).UserID;

            return(MasterProductScheduleDBHelper.CancelConfirmOperate(model, BillTypeFlag, BillTypeCode, loginUserID));
        }