public static bool ConfirmBill(StorageInPurchaseModel model, out string Msg) { //获取登陆用户信息 UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; //设置公司代码 model.CompanyCD = userInfo.CompanyCD; //定义返回变量 bool isSucc = false; Msg = ""; /* * 定义日志内容变量 * 增删改相关的日志,需要输出操作日志,该类型日志插入到数据库 * 其他的 如出现异常时,需要输出系统日志,该类型日志保存到日志文件 */ //获取公司代码 string companyCD = ((UserInfoUtil)SessionUtil.Session["UserInfo"]).CompanyCD; //执行删除操作 try { //执行更新 isSucc = StorageInPurchaseDHHelper.ConfirmBill(model, out Msg); } 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> /// <returns></returns> public static bool InsertStorageInPurchase(StorageInPurchaseModel model, List <StorageInPurchaseDetailModel> modelList, Hashtable ht, 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 = StorageInPurchaseDHHelper.InsertStorageInPurchase(model, modelList, ht, 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.InNo); //涉及关键元素 这个需要根据每个页面具体设置,本页面暂时设置为空 logModel.Element = ConstUtil.LOG_PROCESS_INSERT; //设置操作成功标识 logModel.Remark = remark; //登陆日志 LogDBHelper.InsertLog(logModel); return(isSucc); }
/// <summary> /// 获取采购入库及详细信息 /// </summary> /// <returns>DataTable</returns> public static DataTable GetStorageInPurchaseDetailInfo(StorageInPurchaseModel model) { try { return(StorageInPurchaseDHHelper.GetStorageInPurchaseDetailInfo(model)); } catch (System.Exception ex) { throw ex; } }
public static DataTable GetStorageInPurchaseDetailInfo(string ID, string CompanyCD) { try { return(StorageInPurchaseDHHelper.GetStorageInPurchaseDetailInfo(ID, CompanyCD)); } catch (Exception) { throw; } }
/// <summary> /// 获取采购到货通知单 /// </summary> /// <param name="companycd"></param> /// <returns></returns> public static DataTable GetPurchaseList(PurchaseArriveModel model) { try { return(StorageInPurchaseDHHelper.GetPurchaseList(model)); } catch (Exception) { throw; } }
public static DataTable GetStorageInPurchaseTableBycondition(string BatchNo, StorageInPurchaseModel model, string timeStart, string timeEnd, string FromBillNo, string StorageID, string orderby) { try { return(StorageInPurchaseDHHelper.GetStorageInPurchaseTableBycondition(BatchNo, model, timeStart, timeEnd, FromBillNo, StorageID, orderby)); } catch (System.Exception ex) { throw ex; } }
/// <summary> /// 查询采购入库列表 /// </summary> /// <returns>DataTable</returns> public static DataTable GetStorageInPurchaseTableBycondition(string BatchNo, StorageInPurchaseModel model, string timeStart, string timeEnd, string FromBillNo, string StorageID, int pageIndex, int pageCount, string ord, ref int TotalCount) { try { return(StorageInPurchaseDHHelper.GetStorageInPurchaseTableBycondition(BatchNo, model, timeStart, timeEnd, FromBillNo, StorageID, pageIndex, pageCount, ord, ref TotalCount)); } catch (System.Exception ex) { throw ex; } }
/// <summary> /// 超账期应付款查询 /// </summary> /// <param name="ProviderID">供应商</param> /// <param name="pageIndex">当前页</param> /// <param name="pageCount">每页记录数</param> /// <param name="orderBy">排序方法</param> /// <param name="TotalCount">总记录数</param> /// <returns></returns> public static DataTable GetOutDateAccount(string CompanyCD, string ProviderID , int pageIndex, int pageCount, string orderBy, ref int TotalCount) { return(StorageInPurchaseDHHelper.GetOutDateAccount(CompanyCD, ProviderID , pageIndex, pageCount, orderBy, ref TotalCount)); }
/// <summary> /// /// </summary> /// <param name="model">CompanyCD,ID</param> /// <returns></returns> public static bool ISConfirmBill(StorageInPurchaseModel model) { return(StorageInPurchaseDHHelper.ISConfirmBill(model)); }