public static bool ConfirmBill(StorageOutOtherModel model, out string retstrval) { //获取登陆用户信息 retstrval = ""; UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; //设置公司代码 model.CompanyCD = userInfo.CompanyCD; //定义返回变量 bool isSucc = false; /* * 定义日志内容变量 * 增删改相关的日志,需要输出操作日志,该类型日志插入到数据库 * 其他的 如出现异常时,需要输出系统日志,该类型日志保存到日志文件 */ //获取公司代码 string companyCD = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).CompanyCD; //执行删除操作 try { //执行更新 isSucc = StorageOutOtherDBHelper.ConfirmBill(model, out retstrval); } catch (Exception ex) { //输出日志 WriteSystemLog(userInfo, ex); } //定义变量 string remark; //成功时 if (isSucc) { //设置操作成功标识 remark = ConstUtil.LOG_PROCESS_SUCCESS; } else { //设置操作成功标识 remark = ConstUtil.LOG_PROCESS_FAILED; } //操作日志 LogInfoModel logModel = InitLogInfo(model.ID); //涉及关键元素 这个需要根据每个页面具体设置,本页面暂时设置为空 logModel.Element = "确认"; //设置操作成功标识 logModel.Remark = remark; //登陆日志 LogDBHelper.InsertLog(logModel); return(isSucc); }
/// <summary> /// 插入其他出库和其他出库明细 /// </summary> /// <param name="model"></param> /// <param name="modelList"></param> /// <returns></returns> public static bool InsertStorageOutOther(StorageOutOtherModel model, Hashtable ht, List <StorageOutOtherDetailModel> modelList, out int IndexIDentity) { IndexIDentity = 0; //获取登陆用户信息 UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; //设置公司代码 model.CompanyCD = userInfo.CompanyCD; //定义返回变量 bool isSucc = false; /* * 定义日志内容变量 * 增删改相关的日志,需要输出操作日志,该类型日志插入到数据库 * 其他的 如出现异常时,需要输出系统日志,该类型日志保存到日志文件 */ //获取公司代码 string companyCD = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).CompanyCD; //执行删除操作 try { //执行更新 isSucc = StorageOutOtherDBHelper.InsertStorageOutOther(model, ht, modelList, out IndexIDentity); } catch (Exception ex) { //输出日志 WriteSystemLog(userInfo, ex); } //定义变量 string remark; //成功时 if (isSucc) { //设置操作成功标识 remark = ConstUtil.LOG_PROCESS_SUCCESS; } else { //设置操作成功标识 remark = ConstUtil.LOG_PROCESS_FAILED; } //操作日志 LogInfoModel logModel = InitLogInfo(model.OutNo); //涉及关键元素 这个需要根据每个页面具体设置,本页面暂时设置为空 logModel.Element = ConstUtil.LOG_PROCESS_INSERT; //设置操作成功标识 logModel.Remark = remark; //登陆日志 LogDBHelper.InsertLog(logModel); return(isSucc); }
public static DataTable GetStorageOutOtherDetailInfo(string ID, string CompanyCD) { try { return(StorageOutOtherDBHelper.GetStorageOutOtherDetailInfo(ID, CompanyCD)); } catch (Exception) { throw; } }
//判断分仓存量表中是否有不存在的记录。 //当在无来源的时候,选择物品没有通过当前仓库选择,而是从所有的仓库中选择物品 //就会有这样的情况,当确认的时候,而物品又允许负库存的时候就会出现,在分仓存量表中 //不存在也时候也能确认。 public static string ifExist(StorageOutOtherModel model) { try { return(StorageOutOtherDBHelper.ifExist(model)); } catch (Exception) { throw; } }
public static string ISBigUseCountWhenCant(StorageOutOtherModel model) { return(StorageOutOtherDBHelper.ISBigUseCountWhenCant(model)); }
/// <summary> /// /// </summary> /// <param name="model">CompanyCD,ID</param> /// <returns></returns> public static bool ISConfirmBill(StorageOutOtherModel model) { return(StorageOutOtherDBHelper.ISConfirmBill(model)); }
/// <summary> /// 获取其他出库详细信息(加载页面的时候) /// </summary> /// <returns>DataTable</returns> public static DataTable GetStorageOutOtherDetailInfo(StorageOutOtherModel model) { return(StorageOutOtherDBHelper.GetStorageOutOtherDetailInfo(model)); }
/// <summary> /// 根据采购退货单明细中ID数组来获取信息(填充入库单中的明细) /// </summary> /// <param name="strDetailIDList"></param> /// <param name="CompanyCD"></param> /// <returns></returns> public static DataTable GetInfoByDetalIDList(string strDetailIDList, string CompanyCD) { return(StorageOutOtherDBHelper.GetInfoByDetalIDList(strDetailIDList, CompanyCD)); }
/// <summary> /// 采购退货明细列表(弹出层显示) /// </summary> /// <param name="CompanyCD"></param> /// <returns></returns> public static DataTable GetPRDetailInfo(string CompanyCD, string txtNo, string Title) { return(StorageOutOtherDBHelper.GetPRDetailInfo(CompanyCD, txtNo, Title)); }
public static DataTable GetStorageOutOtherTableBycondition(StorageOutOtherModel model, string IndexValue, string TxtValue, string timeStart, string timeEnd, string BatchNo, string orderby) { return(StorageOutOtherDBHelper.GetStorageOutOtherTableBycondition(model, IndexValue, TxtValue, timeStart, timeEnd, BatchNo, orderby)); }
/// <summary> /// 查询其他出库单 /// </summary> /// <returns>DataTable</returns> public static DataTable GetStorageOutOtherTableBycondition(StorageOutOtherModel model, string timeStart, string timeEnd, string EFIndex, string EFDesc, int pageIndex, int pageCount, string ord, ref int TotalCount) { return(StorageOutOtherDBHelper.GetStorageOutOtherTableBycondition(model, timeStart, timeEnd, EFIndex, EFDesc, pageIndex, pageCount, ord, ref TotalCount)); }