Beispiel #1
0
        protected unsafe void Page_Load(object sender, EventArgs e)
        {
            string   str;
            UserInfo info;
            int      num;
            bool     flag;

            this.nUserId = FunUtil.GetCurrentUserID(this.Page);
            this.nId     = Util.GetInt(base.Request, "id", -1);
            this.nSelId  = Util.GetInt(base.Request, "sel", -1);
            SkinUtil.AdhereEntryStyleSheet(this.Page, "bootstrap.min.css");
            if ((base.IsPostBack == 0) != null)
            {
                goto Label_0063;
            }
            goto Label_01A0;
Label_0063:
            this.__BindRole(this.sel_Role);
            this.btnCancel.Visible = 0;
            if (((this.nId > 0) == 0) != null)
            {
                goto Label_0136;
            }
            str = Util.GetString(base.Request, "act", "");
            if ((("del" == str) == 0) != null)
            {
                goto Label_00D0;
            }
            UserInfo.Del(this.nId);
            this.nId = -1;
            goto Label_0135;
Label_00D0:
            if ((("mdy" == str) == 0) != null)
            {
                goto Label_0135;
            }
            info = UserInfo.Get(this.nId);
            PageUtil.CommonFillEdit(this, info);
            num = UserRoles.GetUserFirstRoleId(info.Id);
            PageUtil.SetSel(this.sel_Role, &num.ToString());
            this.btnAdd.Value      = "更新";
            this.btnCancel.Visible = 1;
            Label_0135 :;
            Label_0136 :
            this.PaginationBar1.RecordCount = 0x2710;
            this.PaginationBar1.PageIndex   = Util.GetInt(base.Request, "pi", 0) + 1;
            this.PaginationBar1.PageSize    = Util.GetInt(base.Request, "ps", this.PaginationBar1.DefaultPageSize);
            PageUtil.RestoreSearchConditionFromSession(this.Page);
            this.__BindData();
Label_01A0:
            return;
        }
Beispiel #2
0
        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;
        }
        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;
        }
Beispiel #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string    str;
            SiteRoles roles;
            bool      flag;

            this.nUserId = FunUtil.GetCurrentUserID(this.Page);
            this.nId     = Util.GetInt(base.Request, "id", -1);
            this.nSelId  = Util.GetInt(base.Request, "sel", -1);
            SkinUtil.AdhereEntryStyleSheet(this.Page, "bootstrap.min.css");
            if ((base.IsPostBack == 0) != null)
            {
                goto Label_0063;
            }
            goto Label_0174;
Label_0063:
            this.btnCancel.Visible = 0;
            if (((this.nId > 0) == 0) != null)
            {
                goto Label_010A;
            }
            str = Util.GetString(base.Request, "act", "");
            if ((("del" == str) == 0) != null)
            {
                goto Label_00C3;
            }
            SiteRoles.Del(this.nId);
            this.nId = -1;
            goto Label_0109;
Label_00C3:
            if ((("mdy" == str) == 0) != null)
            {
                goto Label_0109;
            }
            roles = SiteRoles.Get(this.nId);
            PageUtil.CommonFillEdit(this, roles);
            this.btnAdd.Value      = "更新";
            this.btnCancel.Visible = 1;
            Label_0109 :;
            Label_010A :
            this.PaginationBar1.RecordCount = 0x2710;
            this.PaginationBar1.PageIndex   = Util.GetInt(base.Request, "pi", 0) + 1;
            this.PaginationBar1.PageSize    = Util.GetInt(base.Request, "ps", this.PaginationBar1.DefaultPageSize);
            PageUtil.RestoreSearchConditionFromSession(this.Page);
            this.__BindData();
Label_0174:
            return;
        }
Beispiel #5
0
        protected unsafe void Page_Load(object sender, EventArgs e)
        {
            string str;

            SitePortal[] portalArray;
            int          num;
            SitePortal   portal;
            bool         flag;

            this.Session["global_pid"] = (int)0;
            this.nUserId = FunUtil.GetCurrentUserID();
            SkinUtil.AdhereEntryStyleSheet(this.Page, "bootstrap.min.css");
            this.applicationpath.Value = Globals.get_ApplicationPath();
            str = ConfigurationManager.AppSettings["dbdefaultportal"];
            if ((base.IsPostBack == 0) != null)
            {
                goto Label_0069;
            }
            goto Label_012A;
Label_0069:
            this.lblPortalName.Text = PortalSettings.get_PortalName();
            portalArray             = SitePortal.GetAllPortal();
            if (((portalArray == null) ? 0 : ((((int)portalArray.Length) < 2) == 0)) != null)
            {
                goto Label_00AA;
            }
            this.trPortal.Visible = 0;
            goto Label_012A;
Label_00AA:
            this.trPortal.Visible = 1;
            this.selPortal.Items.Clear();
            num = 1;
            goto Label_00FE;
Label_00CD:
            portal = portalArray[num];
            this.selPortal.Items.Add(new ListItem(portal.Title, &portal.id.ToString()));
            num += 1;
Label_00FE:
            if ((num < ((int)portalArray.Length)) != null)
            {
                goto Label_00CD;
            }
            PageUtil.SetSel(this.selPortal, str);
            this.Session["global_allportal"] = portalArray;
Label_012A:
            return;
        }
        public static unsafe void Del(int __nID)
        {
            DAYAHEAD_PEAK_REQ dayahead_peak_req;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            dayahead_peak_req            = Get(__nID);
            dayahead_peak_req.IsDelete   = 1;
            dayahead_peak_req.Deleter    = FunUtil.GetCurrentUserID();
            dayahead_peak_req.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(dayahead_peak_req).set(dayahead_peak_req);
Label_0047:
            return;
        }
Beispiel #7
0
        public static unsafe void Del(int __nID)
        {
            HB_QUOTATION_UNIT hb_quotation_unit;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            hb_quotation_unit            = Get(__nID);
            hb_quotation_unit.IsDelete   = 1;
            hb_quotation_unit.Deleter    = FunUtil.GetCurrentUserID();
            hb_quotation_unit.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(hb_quotation_unit).set(hb_quotation_unit);
Label_0047:
            return;
        }
        public static unsafe void Del(int __nID)
        {
            DAYAHEAD_PEK_DEVIATION_REASON dayahead_pek_deviation_reason;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            dayahead_pek_deviation_reason            = Get(__nID);
            dayahead_pek_deviation_reason.IsDelete   = 1;
            dayahead_pek_deviation_reason.Deleter    = FunUtil.GetCurrentUserID();
            dayahead_pek_deviation_reason.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(dayahead_pek_deviation_reason).set(dayahead_pek_deviation_reason);
Label_0047:
            return;
        }
        public static unsafe void Del(int __nID)
        {
            INTRADAY_PEK_RESULT intraday_pek_result;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            intraday_pek_result            = Get(__nID);
            intraday_pek_result.IsDelete   = 1;
            intraday_pek_result.Deleter    = FunUtil.GetCurrentUserID();
            intraday_pek_result.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(intraday_pek_result).set(intraday_pek_result);
Label_0047:
            return;
        }
        public static unsafe void Del(int __nID)
        {
            DAYAHEAD_POSITIVE_TRANS_LIMIT dayahead_positive_trans_limit;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            dayahead_positive_trans_limit            = Get(__nID);
            dayahead_positive_trans_limit.IsDelete   = 1;
            dayahead_positive_trans_limit.Deleter    = FunUtil.GetCurrentUserID();
            dayahead_positive_trans_limit.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(dayahead_positive_trans_limit).set(dayahead_positive_trans_limit);
Label_0047:
            return;
        }
Beispiel #11
0
        public static unsafe void Del(int __nID)
        {
            HB_ShiCZTItem item;
            bool          flag;
            DateTime      time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            item            = Get(__nID);
            item.IsDelete   = 1;
            item.Deleter    = FunUtil.GetCurrentUserID();
            item.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(item).set(item);
Label_0047:
            return;
        }
        public static unsafe void Del(int __nID)
        {
            RESERVE_COST reserve_cost;
            bool         flag;
            DateTime     time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            reserve_cost            = Get(__nID);
            reserve_cost.IsDelete   = 1;
            reserve_cost.Deleter    = FunUtil.GetCurrentUserID();
            reserve_cost.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(reserve_cost).set(reserve_cost);
Label_0047:
            return;
        }
Beispiel #13
0
        public static unsafe void Del(int __nID)
        {
            INTRADAY_PLANT_PRESCHEDULE intraday_plant_preschedule;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            intraday_plant_preschedule            = Get(__nID);
            intraday_plant_preschedule.IsDelete   = 1;
            intraday_plant_preschedule.Deleter    = FunUtil.GetCurrentUserID();
            intraday_plant_preschedule.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(intraday_plant_preschedule).set(intraday_plant_preschedule);
Label_0047:
            return;
        }
Beispiel #14
0
        public static unsafe void Del(int __nID)
        {
            INTRADAY_PEAK_TOTAL_CAP intraday_peak_total_cap;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            intraday_peak_total_cap            = Get(__nID);
            intraday_peak_total_cap.IsDelete   = 1;
            intraday_peak_total_cap.Deleter    = FunUtil.GetCurrentUserID();
            intraday_peak_total_cap.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(intraday_peak_total_cap).set(intraday_peak_total_cap);
Label_0047:
            return;
        }
Beispiel #15
0
        public static unsafe void Del(int __nID)
        {
            RESERVE_DEVIATION_REASON reserve_deviation_reason;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            reserve_deviation_reason            = Get(__nID);
            reserve_deviation_reason.IsDelete   = 1;
            reserve_deviation_reason.Deleter    = FunUtil.GetCurrentUserID();
            reserve_deviation_reason.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(reserve_deviation_reason).set(reserve_deviation_reason);
Label_0047:
            return;
        }
Beispiel #16
0
        public static unsafe void Del(int __nID)
        {
            PEAK_BID peak_bid;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            peak_bid            = Get(__nID);
            peak_bid.IsDelete   = 1;
            peak_bid.Deleter    = FunUtil.GetCurrentUserID();
            peak_bid.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(peak_bid).set(peak_bid);
Label_0047:
            return;
        }
Beispiel #17
0
        public static unsafe void Del(int __nID)
        {
            HB_PARTICIPANT hb_participant;
            bool           flag;
            DateTime       time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            hb_participant            = Get(__nID);
            hb_participant.IsDelete   = 1;
            hb_participant.Deleter    = FunUtil.GetCurrentUserID();
            hb_participant.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(hb_participant).set(hb_participant);
Label_0047:
            return;
        }
Beispiel #18
0
        public static unsafe void Del(int __nID)
        {
            HUAZHONG_RESERVE_RESULT huazhong_reserve_result;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            huazhong_reserve_result            = Get(__nID);
            huazhong_reserve_result.IsDelete   = 1;
            huazhong_reserve_result.Deleter    = FunUtil.GetCurrentUserID();
            huazhong_reserve_result.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(huazhong_reserve_result).set(huazhong_reserve_result);
Label_0047:
            return;
        }
        public static unsafe void Del(int __nID)
        {
            DAYAHEAD_PLANT_SCHEDULE dayahead_plant_schedule;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            dayahead_plant_schedule            = Get(__nID);
            dayahead_plant_schedule.IsDelete   = 1;
            dayahead_plant_schedule.Deleter    = FunUtil.GetCurrentUserID();
            dayahead_plant_schedule.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(dayahead_plant_schedule).set(dayahead_plant_schedule);
Label_0047:
            return;
        }
        public static unsafe void Del(int __nID)
        {
            HUAZHONG_INTRADAY_PEAK_PRICE huazhong_intraday_peak_price;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            huazhong_intraday_peak_price            = Get(__nID);
            huazhong_intraday_peak_price.IsDelete   = 1;
            huazhong_intraday_peak_price.Deleter    = FunUtil.GetCurrentUserID();
            huazhong_intraday_peak_price.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(huazhong_intraday_peak_price).set(huazhong_intraday_peak_price);
Label_0047:
            return;
        }
        public static unsafe void Del(int __nID)
        {
            DAYAHEAD_RESERVE_TOTAL_CAP dayahead_reserve_total_cap;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            dayahead_reserve_total_cap            = Get(__nID);
            dayahead_reserve_total_cap.IsDelete   = 1;
            dayahead_reserve_total_cap.Deleter    = FunUtil.GetCurrentUserID();
            dayahead_reserve_total_cap.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(dayahead_reserve_total_cap).set(dayahead_reserve_total_cap);
Label_0047:
            return;
        }
        public static unsafe void Del(int __nID)
        {
            HUAZHONG_DAYAHEAD_RESERVE_PRICE huazhong_dayahead_reserve_price;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            huazhong_dayahead_reserve_price            = Get(__nID);
            huazhong_dayahead_reserve_price.IsDelete   = 1;
            huazhong_dayahead_reserve_price.Deleter    = FunUtil.GetCurrentUserID();
            huazhong_dayahead_reserve_price.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(huazhong_dayahead_reserve_price).set(huazhong_dayahead_reserve_price);
Label_0047:
            return;
        }
        public static unsafe void Del(int __nID)
        {
            DAYAHEAD_PEK_POWER_PROV dayahead_pek_power_prov;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            dayahead_pek_power_prov            = Get(__nID);
            dayahead_pek_power_prov.IsDelete   = 1;
            dayahead_pek_power_prov.Deleter    = FunUtil.GetCurrentUserID();
            dayahead_pek_power_prov.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(dayahead_pek_power_prov).set(dayahead_pek_power_prov);
Label_0047:
            return;
        }
        public static unsafe void Del(int __nID)
        {
            INTRADAY_PEAK_POWER_PROV intraday_peak_power_prov;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            intraday_peak_power_prov            = Get(__nID);
            intraday_peak_power_prov.IsDelete   = 1;
            intraday_peak_power_prov.Deleter    = FunUtil.GetCurrentUserID();
            intraday_peak_power_prov.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(intraday_peak_power_prov).set(intraday_peak_power_prov);
Label_0047:
            return;
        }
        public static unsafe void Del(int __nID)
        {
            DAYAHEAD_RESERVE_POWER_PLANT dayahead_reserve_power_plant;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            dayahead_reserve_power_plant            = Get(__nID);
            dayahead_reserve_power_plant.IsDelete   = 1;
            dayahead_reserve_power_plant.Deleter    = FunUtil.GetCurrentUserID();
            dayahead_reserve_power_plant.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(dayahead_reserve_power_plant).set(dayahead_reserve_power_plant);
Label_0047:
            return;
        }
        public static unsafe void Del(int __nID)
        {
            HUAZHONG_PEK_INTRADAY_REASON huazhong_pek_intraday_reason;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            huazhong_pek_intraday_reason            = Get(__nID);
            huazhong_pek_intraday_reason.IsDelete   = 1;
            huazhong_pek_intraday_reason.Deleter    = FunUtil.GetCurrentUserID();
            huazhong_pek_intraday_reason.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(huazhong_pek_intraday_reason).set(huazhong_pek_intraday_reason);
Label_0047:
            return;
        }
        public static unsafe void Del(int __nID)
        {
            HUAZHONG_DAYAHEAD_PEK_POWER_PLANT huazhong_dayahead_pek_power_plant;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            huazhong_dayahead_pek_power_plant            = Get(__nID);
            huazhong_dayahead_pek_power_plant.IsDelete   = 1;
            huazhong_dayahead_pek_power_plant.Deleter    = FunUtil.GetCurrentUserID();
            huazhong_dayahead_pek_power_plant.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(huazhong_dayahead_pek_power_plant).set(huazhong_dayahead_pek_power_plant);
Label_0047:
            return;
        }
        public static unsafe void Del(int __nID)
        {
            INTRADAY_REVERSE_TRANS_LIMIT intraday_reverse_trans_limit;
            bool     flag;
            DateTime time;

            if (((__nID < 1) == 0) == null)
            {
                goto Label_0047;
            }
            intraday_reverse_trans_limit            = Get(__nID);
            intraday_reverse_trans_limit.IsDelete   = 1;
            intraday_reverse_trans_limit.Deleter    = FunUtil.GetCurrentUserID();
            intraday_reverse_trans_limit.DeleteTime = &DateTime.Now.Ticks;
            CommonClassDB.Instance(intraday_reverse_trans_limit).set(intraday_reverse_trans_limit);
Label_0047:
            return;
        }
Beispiel #29
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;
        }
Beispiel #30
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;
        }