示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         GobalTools.BindCity(this.ddlCity);
     }
 }
示例#2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         GobalTools.BindCity(this.cbCityCodeValue);
         if (Request.Params["id"] != null)
         {
             TrafficLimitInfoEntity entity = SimpleOrmOperator.Query <TrafficLimitInfoEntity>(Convert.ToInt32(Request.Params["id"]));
             WebFormHelper.SetDataToForm(this, entity);
         }
         else
         {
         }
     }
 }
示例#3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         GobalTools.BindCity(this.cbCityCodeValue);
         if (Request.Params["id"] != null)
         {
             TrafficLimitExtendInfoEntity entity = SimpleOrmOperator.Query<TrafficLimitExtendInfoEntity>(Convert.ToInt32(Request.Params["id"]));
             WebFormHelper.SetDataToForm(this, entity);
             this.txtStartDateShow.Value = DateTimeHelper.DtToShortString(entity.StartDate);
             this.txtEndDateShow.Value = DateTimeHelper.DtToShortString(entity.EndDate);
         }
         else
         {
             this.txtStartDateShow.Value = DateTimeHelper.DtToShortString(System.DateTime.Now);
             this.txtEndDateShow.Value = DateTimeHelper.DtToShortString(System.DateTime.Now);
         }
     }
 }
示例#4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         GobalTools.BindCity(this.cbCityCodeValue);
         GobalTools.BindTerminalGroup(this.cbMachineGroupIdValue);
         if (Request.Params["id"] != null)
         {
             TerminalEntity entity = SimpleOrmOperator.Query <TerminalEntity>(Convert.ToInt32(Request.Params["id"]));
             WebFormHelper.SetDataToForm(this, entity);
             this.lbLastOnlineTime.Text     = DateTimeHelper.DtToLongString(entity.LastOnlineTime);
             this.lbLastOutlineTime.Text    = DateTimeHelper.DtToLongString(entity.LastOutlineTime);
             this.lbCurrentStatus.ForeColor = Color.Red;
             this.lbCurrentStatus.Text      = string.Format("({0})", FT.Commons.Tools.WindowExHelper.CanConnectionTo(entity.MachineIp)?"在线":"不在线");
         }
         else
         {
         }
     }
 }