Example #1
0
        /// <summary>
        /// 确认或结单
        /// </summary>
        /// <param name="model"></param>
        /// <param name="isConfirm"></param>
        /// <returns></returns>
        public static bool ConfirmOrCompleteTakeMaterial(TakeMaterialModel model, int OperateType)
        {
            string loginUserID = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).UserID;

            //string loginUserID = "admin";//[待修改]
            return(TakeMaterialDBHelper.ConfirmOrCompleteTakeMaterial(model, loginUserID, OperateType));
        }
Example #2
0
        /// <summary>
        /// 领料单插入
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static bool InsertTakeMaterial(TakeMaterialModel 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.TakeNo, 0);
                logModel.Element = ConstUtil.LOG_PROCESS_INSERT;

                succ = TakeMaterialDBHelper.InsertTakeMaterial(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 #3
0
 /// <summary>
 /// 领料单详细信息
 /// </summary>
 /// <returns>DataTable</returns>
 public static DataTable GetTakeDetailInfo(TakeMaterialModel model)
 {
     try
     {
         return(TakeMaterialDBHelper.GetTakeDetailInfo(model));
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Example #4
0
 /// <summary>
 /// 发料
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static bool SendTakeMaterial(TakeMaterialModel model, out string reason)
 {
     try
     {
         return(TakeMaterialDBHelper.SendTakeMaterial(model, out reason));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #5
0
 /// <summary>
 /// 通过检索条件查询领料单信息
 /// </summary>
 /// <returns>DataTable</returns>
 public static DataTable GetTakeMaterialListBycondition(TakeMaterialModel model, string TakeDateStart, string TakeDateEnd, int BillTypeFlag, int BillTypeCode, int FlowStatus, string EFIndex, string EFDesc, int pageIndex, int pageCount, string OrderBy, ref int totalCount)
 {
     try
     {
         return(TakeMaterialDBHelper.GetTakeMaterialListBycondition(model, TakeDateStart, TakeDateEnd, BillTypeFlag, BillTypeCode, FlowStatus, EFIndex, EFDesc, pageIndex, pageCount, OrderBy, ref totalCount));
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Example #6
0
        /// <summary>
        /// 取消确认
        /// </summary>
        /// <param name="model"></param>
        /// <param name="isConfirm"></param>
        /// <returns></returns>
        public static bool CancelConfirmTakeMaterial(TakeMaterialModel model, int BillTypeFlag, int BillTypeCode)
        {
            string loginUserID = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).UserID;

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