예제 #1
0
 public static bool InsertSubStorageIn(SubStorageInModel model, string DetailProductID, string DetailSendCount, string DetailUsedUnitID, string DetailUsedUnitCount, string DetailUsedPrice, string DetailExRate, string DetailBatchNo, string length, out string ID, Hashtable htExtAttr)
 {
     try
     {
         bool         succ     = false;
         LogInfoModel logModel = InitLogInfo(model.InNo);
         logModel.Element = ConstUtil.LOG_PROCESS_INSERT;
         //设置模块ID 模块ID请在ConstUtil中定义,以便维护
         logModel.ModuleID = ConstUtil.MODULE_ID_SUBSTOREMANAGER_SUBSTORAGEINIT;
         succ = SubStorageDBHelper.InsertSubStorageIn(model, DetailProductID, DetailSendCount, DetailUsedUnitID, DetailUsedUnitCount, DetailUsedPrice, DetailExRate, DetailBatchNo, length, out ID, htExtAttr);
         if (!succ)
         {
             logModel.Remark = ConstUtil.LOG_PROCESS_FAILED;
         }
         else
         {
             logModel.Remark = ConstUtil.LOG_PROCESS_SUCCESS;
         }
         LogDBHelper.InsertLog(logModel);
         return(succ);
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }
예제 #2
0
        public static bool UpdateSubStorageIn(SubStorageInModel model, string DetailProductID, string DetailSendCount, string DetailUsedUnitID, string DetailUsedUnitCount, string DetailUsedPrice, string DetailExRate, string DetailBatchNo, string length, string no, Hashtable htExtAttr)
        {
            UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"];

            if (model.ID <= 0)
            {
                return(false);
            }
            try
            {
                bool         succ     = false;
                LogInfoModel logModel = InitLogInfo(no);
                logModel.Element = ConstUtil.LOG_PROCESS_UPDATE;
                //设置模块ID 模块ID请在ConstUtil中定义,以便维护
                logModel.ModuleID = ConstUtil.MODULE_ID_SUBSTOREMANAGER_SUBSTORAGEINIT;
                succ = SubStorageDBHelper.UpdateSubStorageIn(model, DetailProductID, DetailSendCount, DetailUsedUnitID, DetailUsedUnitCount, DetailUsedPrice, DetailExRate, DetailBatchNo, length, no, htExtAttr);
                if (!succ)
                {
                    logModel.Remark = ConstUtil.LOG_PROCESS_FAILED;
                }
                else
                {
                    logModel.Remark = ConstUtil.LOG_PROCESS_SUCCESS;
                }
                LogDBHelper.InsertLog(logModel);
                return(succ);
            }
            catch (System.Exception ex)
            {
                throw ex;
            }
        }
예제 #3
0
 public static bool ConfirmSubStorageIn(SubStorageInModel Model, string DetailProductID, string DetailSendCount, string DetailUnitPrice, string DetailBatchNo, string length)
 {
     try
     {
         bool         succ     = false;
         LogInfoModel logModel = InitLogInfo(Model.InNo);
         logModel.Element  = ConstUtil.LOG_PROCESS_CONFIRM;
         logModel.ModuleID = ConstUtil.MODULE_ID_SUBSTOREMANAGER_SUBSTORAGEINIT;
         succ = SubStorageDBHelper.ConfirmSubStorageIn(Model, DetailProductID, DetailSendCount, DetailUnitPrice, DetailBatchNo, length);
         if (!succ)
         {
             logModel.Remark = ConstUtil.LOG_PROCESS_FAILED;
         }
         else
         {
             logModel.Remark = ConstUtil.LOG_PROCESS_SUCCESS;
         }
         LogDBHelper.InsertLog(logModel);
         return(succ);
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }