public static bool UpdateSubDeliverySend(SubDeliverySend model, List <SubDeliverySendDetail> modelList, Hashtable htExtAttr)
        {
            //定义返回变量
            bool res = false;

            /*
             * 定义日志内容变量
             * 增删改相关的日志,需要输出操作日志,该类型日志插入到数据库
             * 其他的 如出现异常时,需要输出系统日志,该类型日志保存到日志文件
             */
            //获取当前用户信息
            UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"];

            //执行操作
            try
            {
                //执行操作
                res = XBase.Data.Office.LogisticsDistributionManager.SubDeliverySendSaveDBHelper.UpdateSubDeliverySend(model, modelList, htExtAttr);
            }
            catch (Exception ex)
            {
                //输出日志
                WriteSystemLog(userInfo, ex);
            }
            //定义变量
            string remark;

            //成功时
            if (res)
            {
                //设置操作成功标识
                remark = ConstUtil.LOG_PROCESS_SUCCESS;
            }
            else
            {
                //设置操作成功标识
                remark = ConstUtil.LOG_PROCESS_FAILED;
            }
            //操作日志
            LogInfoModel logModel = InitLogInfo(model.SendNo);

            //涉及关键元素 这个需要根据每个页面具体设置,本页面暂时设置为空
            logModel.Element = ConstUtil.LOG_PROCESS_UPDATE;

            //设置操作成功标识
            logModel.Remark = remark;

            //登陆日志
            LogDBHelper.InsertLog(logModel);

            return(res);
        }
 /*打印使用*/
 public static DataTable GetSubDeliverySendInfoPrint(SubDeliverySend model)
 {
     return(XBase.Data.Office.LogisticsDistributionManager.SubDeliverySendSaveDBHelper.GetSubDeliverySendInfoPrint(model));
 }
        public static bool UpdateStatus(SubDeliverySend model, int stype)
        {
            //定义返回变量
            bool res = false;

            /*
             * 定义日志内容变量
             * 增删改相关的日志,需要输出操作日志,该类型日志插入到数据库
             * 其他的 如出现异常时,需要输出系统日志,该类型日志保存到日志文件
             */
            //获取当前用户信息
            UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"];

            //执行操作
            try
            {
                //执行操作
                res = XBase.Data.Office.LogisticsDistributionManager.SubDeliverySendSaveDBHelper.UpdateStatus(model, stype);
            }
            catch (Exception ex)
            {
                //输出日志
                WriteSystemLog(userInfo, ex);
            }
            //定义变量
            string remark;

            //成功时
            if (res)
            {
                //设置操作成功标识
                remark = ConstUtil.LOG_PROCESS_SUCCESS;
            }
            else
            {
                //设置操作成功标识
                remark = ConstUtil.LOG_PROCESS_FAILED;
            }
            //操作日志
            LogInfoModel logModel = InitLogInfo(model.SendNo);
            //涉及关键元素 这个需要根据每个页面具体设置,本页面暂时设置为空
            string msg = string.Empty;

            switch (stype)
            {
            case 1:
                /*确认*/
                msg = ConstUtil.LOG_PROCESS_CONFIRM;
                break;

            case 2:
                /*结单*/
                msg = ConstUtil.LOG_PROCESS_COMPLETE;
                break;

            case 3:
                /*取消结单*/
                msg = ConstUtil.LOG_PROCESS_CONCELCOMPLETE;
                break;

            case 4:
                /*取消确认*/
                msg = ConstUtil.LOG_PROCESS_UNCONFIRM;
                break;
            }
            logModel.Element = msg;;

            //设置操作成功标识
            logModel.Remark = remark;

            //登陆日志
            LogDBHelper.InsertLog(logModel);

            return(res);
        }