Beispiel #1
0
        protected void btnUpdateOffset_Click(object sender, EventArgs e)
        {
            //判断
            int a = 0;

            if (!int.TryParse(tbxKPIOffset.Text.Trim(), out a))
            {
                MessageBox.popupClientMessage(this.Page, "数值不正确!", "call();");

                return;
            }

            if (a < 0)
            {
                MessageBox.popupClientMessage(this.Page, "数值不能为负值,请调整计算站时间!", "call();");

                return;
            }

            //
            if (KPI_SystemDal.UpdateByName("KPIOffset", "1", a.ToString(), ""))
            {
                //MessageBox.popupClientMessage(this.Page, "编辑成功!", "call();");

                BindGrid();
            }
        }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="bFirst"></param>
 /// <returns></returns>
 public bool KPIOffReload()
 {
     try {
         KPI_SystemDal.UpdateByName("KPIReload", "1", "0", "");
         return(true);
     }
     catch (Exception ex) {
         LogUtil.LogMessage(ex.ToString());
         return(false);
     }
 }
Beispiel #3
0
        protected void btnUpdateKPIFirstURL_Click(object sender, EventArgs e)
        {
            string url = tbxKPIFirtURL.Text;

            //
            if (KPI_SystemDal.UpdateByName("KPIFirstURL", "1", url, ""))
            {
                //MessageBox.popupClientMessage(this.Page, "编辑成功!", "call();");

                BindGrid();
            }
        }
Beispiel #4
0
        protected void rbnKPIReload_SelectedIndexChanged(object sender, EventArgs e)
        {
            //判断
            if (rbnKPIReload.SelectedValue == "0" || rbnKPIReload.SelectedValue == "1")
            {
                if (KPI_SystemDal.UpdateByName("KPIReload", "1", rbnKPIReload.SelectedValue, ""))
                {
                    //MessageBox.popupClientMessage(this.Page, "编辑成功!", "call();");

                    BindGrid();
                }
            }
        }