コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            UserInfo      info;
            HB_ShiCZTItem item;
            string        str;
            bool          flag;

            this.nUserId = FunUtil.GetCurrentUserID(this.Page);
            this.m_htCommonFill["m_strEditUrl"]   = PageUtil.GetDoFormActionUrl(base.Request, "DianChang_ShiCZT_ZhuTZC", "");
            this.m_htCommonFill["m_strSubmitUrl"] = PageUtil.GetDoFormActionUrl(base.Request, "DianChang_ShiCZT_ZhuTSubmit", "");
            SkinUtil.AdhereEntryStyleSheet(this.Page, "bootstrap.min.css");
            SkinUtil.AdhereEntryStyleSheet(this.Page, "fileinput.css");
            info = UserInfo.Get(this.nUserId);
            if (((info == null) == 0) != null)
            {
                goto Label_009C;
            }
            goto Label_01BA;
Label_009C:
            PageUtil.CommonFillHash(this.m_htCommonFill, 0, info, "_User", 0, 0, null);
            item = HB_ShiCZTItem.GetByUserId(this.nUserId);
            if ((item == null) != null)
            {
                goto Label_01BA;
            }
            PageUtil.CommonFillHash(this.m_htCommonFill, 0, item, "", 0, 0, null);
            str = this.ltTemplate.Text;
            if (string.IsNullOrEmpty(item.YingYZZ) != null)
            {
                goto Label_0137;
            }
            this.m_htCommonFill["lblimg_YingYZZ"] = string.Format(str, PageUtil.GetTypeFieldAttachLink(this.Page, item, "YingYZZ", 1), PageUtil.GetTypeFieldAttachLink(this.Page, item, "YingYZZ", 11));
Label_0137:
            if (string.IsNullOrEmpty(item.DianLYWXKZ) != null)
            {
                goto Label_0182;
            }
            this.m_htCommonFill["lblimg_DianLYWXKZ"] = string.Format(str, PageUtil.GetTypeFieldAttachLink(this.Page, item, "DianLYWXKZ", 1), PageUtil.GetTypeFieldAttachLink(this.Page, item, "DianLYWXKZ", 11));
Label_0182:
            if ((item.RecordStatus == 1) != null)
            {
                goto Label_01B9;
            }
            this.btnSumibt.Disabled            = 1;
            this.btnSumibt.Attributes["title"] = "仅录入中记录需要提交审核,请先“修改主体信息”";
            Label_01B9 :;
            Label_01BA :
            return;
        }
コード例 #2
0
ファイル: Home.cs プロジェクト: DUKE797/SJ.DesktopModules.HB
        protected void Page_Load(object sender, EventArgs e)
        {
            int           num;
            string        str;
            HB_ShiCZTItem item;
            bool          flag;

            this.nUserId = FunUtil.GetCurrentUserID(this.Page);
            if (((PersistenceManager.GlobalPortalId == 3) == 0) != null)
            {
                goto Label_00E7;
            }
            if ((UserRoles.IsUserInRoleName(this.nUserId, "注册用户") == 0) != null)
            {
                goto Label_00DB;
            }
            str  = PageUtil.GetDoFormActionUrl(base.Request, "DianChang_ShiCZT_ZhuTZC", "");
            item = HB_ShiCZTItem.GetByUserId(this.nUserId);
            if (((item == null) == 0) != null)
            {
                goto Label_0088;
            }
            PageUtil.WriteAlertAndRet(this.Page, "请先完成主体注册信息填写工作", str, "");
            goto Label_00D8;
Label_0088:
            if (((item.RecordStatus == 1) == 0) != null)
            {
                goto Label_00B1;
            }
            PageUtil.WriteAlertAndRet(this.Page, "请先提交主体注册信息", str, "");
            goto Label_00D8;
Label_00B1:
            if (((item.RecordStatus == 2) == 0) != null)
            {
                goto Label_00D8;
            }
            PageUtil.WriteAlertAndRet(this.Page, "请耐心等待交易中心审核主体注册信息", str, "");
Label_00D8:
            goto Label_00E4;
Label_00DB:
            this.__BindData();
Label_00E4:
            goto Label_0116;
Label_00E7:
            str = PageUtil.GetDoFormActionUrl(base.Request, "DianWang_Home", "");
            PageUtil.WriteAlertAndRet(this.Page, "", str, "");
Label_0116:
            return;
        }
コード例 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            UserInfo      info;
            HB_ShiCZTItem item;
            string        str;
            bool          flag;

            this.nUserId = FunUtil.GetCurrentUserID(this.Page);
            this.m_htCommonFill["m_strViewUrl"] = PageUtil.GetDoFormActionUrl(base.Request, "DianChang_ShiCZT_ZhuTView", "");
            SkinUtil.AdhereEntryStyleSheet(this.Page, "bootstrap.min.css");
            SkinUtil.AdhereEntryStyleSheet(this.Page, "fileinput.css");
            info = UserInfo.Get(this.nUserId);
            if (((info == null) == 0) != null)
            {
                goto Label_0076;
            }
            goto Label_0197;
Label_0076:
            PageUtil.CommonFillHash(this.m_htCommonFill, 0, info, "_User", 0, 0, null);
            item = HB_ShiCZTItem.GetByUserId(this.nUserId);
            if ((item == null) != null)
            {
                goto Label_0197;
            }
            PageUtil.CommonFillHash(this.m_htCommonFill, 0, item, "", 0, 0, null);
            str = this.ltTemplate.Text;
            if (string.IsNullOrEmpty(item.YingYZZ) != null)
            {
                goto Label_012E;
            }
            this.m_htCommonFill["lblimg_YingYZZ"] = string.Format(str, "hidden_YingYZZ", PageUtil.GetTypeFieldAttachLink(this.Page, item, "YingYZZ", 1), PageUtil.GetTypeFieldAttachLink(this.Page, item, "YingYZZ", 11));
            this.m_htCommonFill["hidden_YingYZZ"] = "exist";
Label_012E:
            if (string.IsNullOrEmpty(item.DianLYWXKZ) != null)
            {
                goto Label_0196;
            }
            this.m_htCommonFill["lblimg_DianLYWXKZ"] = string.Format(str, "hidden_DianLYWXKZ", PageUtil.GetTypeFieldAttachLink(this.Page, item, "DianLYWXKZ", 1), PageUtil.GetTypeFieldAttachLink(this.Page, item, "DianLYWXKZ", 11));
            this.m_htCommonFill["hidden_DianLYWXKZ"] = "exist";
            Label_0196 :;
            Label_0197 :
            return;
        }
コード例 #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            HB_ShiCZTItem item;
            UserInfo      info;
            string        str;
            bool          flag;

            this.nUserId = FunUtil.GetCurrentUserID(this.Page);
            this.nId     = Util.GetInt(base.Request, "id", -1);
            this.m_htCommonFill["m_strListUrl"] = PageUtil.GetDoFormActionUrl(base.Request, "DianChang_ShiCZT_ZhuTList", null);
            this.m_htCommonFill["m_strAddOn"]   = string.Format("&id={0}&", (int)this.nId);
            SkinUtil.AdhereEntryStyleSheet(this.Page, "bootstrap.min.css");
            SkinUtil.AdhereEntryStyleSheet(this.Page, "fileinput.css");
            if ((base.IsPostBack == 0) != null)
            {
                goto Label_00A5;
            }
            goto Label_01BD;
Label_00A5:
            item = HB_ShiCZTItem.Get(this.nId);
            info = UserInfo.Get(item.UserId);
            PageUtil.CommonFillHash(this.m_htCommonFill, 0, info, "_User", 0, 0, null);
            PageUtil.CommonFillHash(this.m_htCommonFill, 0, item, "", 0, 0, null);
            str = this.ltTemplate.Text;
            if (string.IsNullOrEmpty(item.YingYZZ) != null)
            {
                goto Label_0140;
            }
            this.m_htCommonFill["lblimg_YingYZZ"] = string.Format(str, PageUtil.GetTypeFieldAttachLink(this.Page, item, "YingYZZ", 1), PageUtil.GetTypeFieldAttachLink(this.Page, item, "YingYZZ", 11));
Label_0140:
            if (string.IsNullOrEmpty(item.DianLYWXKZ) != null)
            {
                goto Label_018B;
            }
            this.m_htCommonFill["lblimg_DianLYWXKZ"] = string.Format(str, PageUtil.GetTypeFieldAttachLink(this.Page, item, "DianLYWXKZ", 1), PageUtil.GetTypeFieldAttachLink(this.Page, item, "DianLYWXKZ", 11));
Label_018B:
            this.m_htCommonFill["txt_DiaoDGX_New"]   = "省调直调电厂";
            this.m_htCommonFill["txt_EnterDate_New"] = DateTimeUtil.DisplayDefaultDateTime(DateTime.Now, 0);
Label_01BD:
            return;
        }