Ejemplo n.º 1
0
        /// <summary>
        /// 删除代收登记信息
        /// </summary>
        void DeleteDaiShou()
        {
            if (!Privs_DaiShouDengJi)
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "你没有操作权限"));
            }

            string daiShouId = Utils.GetFormValue("daishouid");

            int bllRetCode = new EyouSoft.BLL.FinStructure.BDaiShou().Delete(daiShouId, SiteUserInfo.CompanyId);

            if (bllRetCode == 1)
            {
                RCWE(UtilsCommons.AjaxReturnJson("1", "操作成功"));
            }
            else if (bllRetCode == -99)
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "要删除的代收登记信息不存在或已删除"));
            }
            else if (bllRetCode == -98)
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "要删除的代收登记信息已审批"));
            }
            else
            {
                RCWE(UtilsCommons.AjaxReturnJson("0", "操作失败"));
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 初始化代收信息
        /// </summary>
        void InitDaiShous()
        {
            var domain = EyouSoft.Security.Membership.UserProvider.GetDomain();

            if (domain == null)
            {
                return;
            }

            if (!new EyouSoft.BLL.SysStructure.BSys().IsExistsMenu2(domain.SysId, EyouSoft.Model.EnumType.PrivsStructure.Menu2.财务管理_代收管理))
            {
                ph_daishou.Visible = false;
                return;
            }

            var items = new EyouSoft.BLL.FinStructure.BDaiShou().GetDaiShous(Utils.GetQueryStringValue("tourid"));

            if (items != null && items.Count > 0)
            {
                rptDaiShou.DataSource = items;
                rptDaiShou.DataBind();
            }
            else
            {
                phEmptyDaiShou.Visible = true;
                ph_daishou.Visible     = false;
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 初始化代收信息
        /// </summary>
        void InitDaiShous()
        {
            if (!Privs_DaiShouLanMu)
            {
                phDaiShou.Visible = false;
                return;
            }

            var items = new EyouSoft.BLL.FinStructure.BDaiShou().GetDaiShous(Utils.GetQueryStringValue("tourid"));

            if (items != null && items.Count > 0)
            {
                rptDaiShou.DataSource = items;
                rptDaiShou.DataBind();
            }
            else
            {
                phEmptyDaiShou.Visible = true;
            }
        }