Example #1
0
        public static DataTable GetInsuPersonalTaxInfo()
        {
            //获取登陆用户信息
            UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"];

            //执行查询
            return(InsuPersonaIncomeTaxDBHelper.SearchInsuPersonalTaxInfo(userInfo.CompanyCD));
        }
Example #2
0
        public static bool SaveInsuPersonInfo(IList <PercentIncomeTaxModel> modelist)
        {
            //定义返回变量
            bool isSucc = true;

            //信息存在时,进行操作
            if (modelist != null && modelist.Count > 0)
            {
                //获取登陆用户信息
                UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"];
                //执行保存操作
                try
                {
                    //执行保存操作
                    isSucc = InsuPersonaIncomeTaxDBHelper.UpdateIsuPersonalTaxInfo(modelist);
                }
                catch (Exception ex)
                {
                    //输出系统日志
                    WriteSystemLog(userInfo, ex);
                }
                //操作日志
                LogInfoModel logModel = InitLogInfo(userInfo.CompanyCD);
                //设置关键元素
                logModel.Element = ConstUtil.LOG_PROCESS_UPDATE;

                //更新成功时
                if (isSucc)
                {
                    //设置操作成功标识
                    logModel.Remark = ConstUtil.LOG_PROCESS_SUCCESS;
                }
                //更新不成功
                else
                {
                    //设置操作成功标识
                    logModel.Remark = ConstUtil.LOG_PROCESS_FAILED;
                }

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

            return(isSucc);
        }