Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.gvwTreasury.PageSize = NBasePage.pagesize;
     if (!base.IsPostBack)
     {
         this.treasury.ParseTreasuryList(this.tvTreasury, string.Empty, false, false);
         if (this.tvTreasury.Nodes.Count > 0)
         {
             if (!string.IsNullOrEmpty(base.Request["tcode"]))
             {
                 string storagetSelect = base.Request["tcode"];
                 this.SetStoragetSelect(storagetSelect);
             }
             else
             {
                 this.tvTreasury.Nodes[0].Selected = true;
             }
             this.hfSelectValue.Value = this.tvTreasury.SelectedValue;
             DataTable childData = this.treasury.GetChildData(this.tvTreasury.SelectedValue);
             this.gvwTreasury.DataSource = childData;
             this.gvwTreasury.DataBind();
         }
         SmEnum.SmSetValue arg_DB_0 = this.manageMode;
     }
 }
Esempio n. 2
0
 protected override void OnInit(System.EventArgs e)
 {
     this.manageMode = this.treasury.GetManageMode();
     if (base.Request["Action"] != null)
     {
         this.action = base.Request["Action"];
     }
     if (base.Request["StorageCode"] != null)
     {
         if (base.Request["StorageCode"].Contains("["))
         {
             this.storageCode = JsonHelper.GetListFromJson(base.Request["StorageCode"])[0];
         }
         else
         {
             this.storageCode = base.Request["StorageCode"];
         }
     }
     if (HttpContext.Current.Session["yhdm"] == null)
     {
         try
         {
             string UserID = "00000000";//WXAPI.getUserIdByCode(code, "1000010");//
             HttpContext.Current.Session["yhdm"] = UserID;
         }
         catch
         {
         }
     }
     this.gvwStorageStock.PageSize = NBasePage.pagesize;
     base.OnInit(e);
     //base.InitBasePage();
 }
Esempio n. 3
0
 protected override void OnInit(EventArgs e)
 {
     this.manageMode = this.treasury.GetManageMode();
     if (this.treasury.GetCount() == 0)
     {
         this.treasury.AddRoot();
     }
     base.OnInit(e);
 }
Esempio n. 4
0
 protected override void OnInit(System.EventArgs e)
 {
     this.AspNetPager1.PageSize = NBasePage.pagesize;
     this.manageMode            = this.treasury.GetManageMode();
     if (this.treasury.GetCount() == 0)
     {
         this.treasury.AddRoot();
     }
     base.OnInit(e);
 }
Esempio n. 5
0
 protected override void OnInit(EventArgs e)
 {
     if (!string.IsNullOrEmpty(base.Request["Action"]))
     {
         this.action = base.Request["Action"];
     }
     if (!string.IsNullOrEmpty(base.Request["Tcode"]))
     {
         this.currentTcode = base.Request["Tcode"];
     }
     this.manageMode = this.treasury.GetManageMode();
     base.OnInit(e);
 }
Esempio n. 6
0
 protected override void OnInit(System.EventArgs e)
 {
     this.manageMode = this.treasury.GetManageMode();
     if (base.Request["Action"] != null)
     {
         this.action = base.Request["Action"];
     }
     if (base.Request["StorageCode"] != null)
     {
         if (base.Request["StorageCode"].Contains("["))
         {
             this.storageCode = JsonHelper.GetListFromJson(base.Request["StorageCode"])[0];
         }
         else
         {
             this.storageCode = base.Request["StorageCode"];
         }
     }
     base.OnInit(e);
 }