Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         GobalTools.BindCity(this.ddlCity);
     }
 }
Ejemplo n.º 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
         {
         }
     }
 }
Ejemplo n.º 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);
         }
     }
 }
Ejemplo n.º 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
         {
         }
     }
 }