Exemple #1
0
        /// <summary>
        /// 退料单插入
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static bool InsertBackMaterial(BackMaterialModel 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.BackNo, 0);
                logModel.Element = ConstUtil.LOG_PROCESS_INSERT;

                succ = BackMaterialDBHelper.InsertBackMaterial(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);
            }
        }
Exemple #2
0
        /// <summary>
        /// 确认或结单
        /// </summary>
        /// <param name="model"></param>
        /// <param name="isConfirm"></param>
        /// <returns></returns>
        public static bool ConfirmOrCompleteBackMaterial(BackMaterialModel model, int OperateType)
        {
            string loginUserID = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).UserID;

            //string loginUserID = "admin";//[待修改]
            return(BackMaterialDBHelper.ConfirmOrCompleteBackMaterial(model, loginUserID, OperateType));
        }
Exemple #3
0
 /// <summary>
 /// 退料单明细详细信息
 /// </summary>
 /// <returns>DataTable</returns>
 public static DataTable GetBackDetailInfo(BackMaterialModel model)
 {
     try
     {
         return(BackMaterialDBHelper.GetBackDetailInfo(model));
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemple #4
0
 /// <summary>
 /// 收料
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public static bool ReceiveBackMaterial(BackMaterialModel model, out string reason)
 {
     try
     {
         return(BackMaterialDBHelper.ReceiveBackMaterial(model, out reason));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #5
0
 /// <summary>
 /// 通过检索条件查询退料单信息
 /// </summary>
 /// <returns>DataTable</returns>
 public static DataTable GetBackMaterialListBycondition(BackMaterialModel model, string ReceiveDateStart, string ReceiveDateEnd, int BillTypeFlag, int BillTypeCode, int FlowStatus, string EFIndex, string EFDesc, int pageIndex, int pageCount, string OrderBy, ref int totalCount)
 {
     try
     {
         return(BackMaterialDBHelper.GetBackMaterialListBycondition(model, ReceiveDateStart, ReceiveDateEnd, BillTypeFlag, BillTypeCode, FlowStatus, EFIndex, EFDesc, pageIndex, pageCount, OrderBy, ref totalCount));
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
Exemple #6
0
        /// <summary>
        /// 取消确认
        /// </summary>
        /// <param name="model"></param>
        /// <param name="isConfirm"></param>
        /// <returns></returns>
        public static bool CancelConfirmBackMaterial(BackMaterialModel model, int BillTypeFlag, int BillTypeCode)
        {
            string loginUserID = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).UserID;

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