Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            sec_type_real    = Request["sec_type_real"];
            electric_id_real = Request["electric_id_real"];
            sec_crew_real    = Request["sec_crew_real"];
            if ((sec_type_real != "") && (sec_type_real != null))
            {
                DataSet DS  = BCA.Get_Electric_Info(sec_type_real, out errMsg);
                DataSet DDS = BCA.Get_Unit_Info(DS.Tables[0].Rows[0]["T_PLANTID"].ToString(), out errMsg);
                Return_dataset(DS);
                Return_dataset(DDS);
            }
            else if ((electric_id_real != "") && (electric_id_real != null))
            {
                DataSet DS = BCA.Get_Unit_Info(electric_id_real, out errMsg);
                Return_dataset(DS);
            }
            else if ((sec_crew_real != "") && (sec_crew_real != null))
            {
                BLL.PerformanceAlarm.BLLWarningThreshold BWT = new BLL.PerformanceAlarm.BLLWarningThreshold();
                DataSet DS = BWT.GETKAOHRDIAN_DESC(sec_crew_real);
                Return_dataset(DS);
            }

            Response.Clear();
            Response.Write(sb.ToString());
            Response.End();
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            sec_type_real = Request["sec_type_real"];
            electric_id_real = Request["electric_id_real"];
            sec_crew_real = Request["sec_crew_real"];
            if ((sec_type_real != "") && (sec_type_real != null))
            {

                DataSet DS = BCA.Get_Electric_Info(sec_type_real, out errMsg);
                DataSet DDS = BCA.Get_Unit_Info(DS.Tables[0].Rows[0]["T_PLANTID"].ToString(), out errMsg);
                Return_dataset(DS);
                Return_dataset(DDS);
            }
            else if ((electric_id_real != "") && (electric_id_real != null))
            {
                DataSet DS = BCA.Get_Unit_Info(electric_id_real, out errMsg);
                Return_dataset(DS);
            }
            else if ((sec_crew_real != "") && (sec_crew_real != null))
            {
                BLL.PerformanceAlarm.BLLWarningThreshold BWT = new BLL.PerformanceAlarm.BLLWarningThreshold();
                DataSet DS = BWT.GETKAOHRDIAN_DESC(sec_crew_real);
                Return_dataset(DS);
            }

            Response.Clear();
            Response.Write(sb.ToString());
            Response.End();
        }
Exemple #3
0
        private void Save_data(string msg)
        {
            BLL.PerformanceAlarm.BLLWarningThreshold BUP = new BLL.PerformanceAlarm.BLLWarningThreshold();
            bool flag = BUP.Save_data(msg);

            Response.Clear();
            Response.Write(flag);
            Response.End();
        }
        private void Delete_data(string msg)
        {
            BLL.PerformanceAlarm.BLLWarningThreshold BUP = new BLL.PerformanceAlarm.BLLWarningThreshold();
            bool flag = BUP.Delete_data(msg);

            Response.Clear();
            Response.Write(flag);
            Response.End();
        }
Exemple #5
0
        private void get_data(string unit_id)
        {
            BLL.PerformanceAlarm.BLLWarningThreshold BUP = new BLL.PerformanceAlarm.BLLWarningThreshold();
            DataSet DS = BUP.Get_GRID_DATA(unit_id);

            //this.dl_data.DataBind();
            int page = Request.Form["page"] != "" ? Convert.ToInt32(Request.Form["page"]) : 0;
            int size = Request.Form["rows"] != "" ? Convert.ToInt32(Request.Form["rows"]) : 0;


            int count = 0;

            if (DS.Tables[0].Rows.Count > 0)
            {
                count = DS.Tables[0].Rows.Count;
            }


            IList <Hashtable> list = new List <Hashtable>();

            foreach (DataRow row in DS.Tables[0].Rows)
            {
                Hashtable ht = new Hashtable();
                ht.Add("ID", row["ID_KEY"].ToString());
                ht.Add("考核点描述", row["考核点描述"].ToString());
                ht.Add("考核下限", row["考核下限"].ToString());
                ht.Add("考核上限", row["考核上限"].ToString());
                ht.Add("提示信息", row["提示信息"].ToString());
                ht.Add("机组", row["机组"].ToString());
                ht.Add("故障类型ID", row["故障类型ID"].ToString());

                list.Add(ht);
            }

            object obj = new
            {
                total = count,
                rows  = list
            };
            string result = JsonConvert.SerializeObject(obj);

            Response.Write(result);
            Response.End();
        }
        private void get_data(string unit_id)
        {
            BLL.PerformanceAlarm.BLLWarningThreshold BUP = new BLL.PerformanceAlarm.BLLWarningThreshold();
            DataSet DS = BUP.Get_GRID_DATA(unit_id);

            //this.dl_data.DataBind();
            int page = Request.Form["page"] != "" ? Convert.ToInt32(Request.Form["page"]) : 0;
            int size = Request.Form["rows"] != "" ? Convert.ToInt32(Request.Form["rows"]) : 0;

            int count = 0;
            if (DS.Tables[0].Rows.Count > 0)
            {
                count = DS.Tables[0].Rows.Count;
            }

            IList<Hashtable> list = new List<Hashtable>();

            foreach (DataRow row in DS.Tables[0].Rows)
            {
                Hashtable ht = new Hashtable();
                ht.Add("ID", row["ID_KEY"].ToString());
                ht.Add("考核点描述", row["考核点描述"].ToString());
                ht.Add("考核下限", row["考核下限"].ToString());
                ht.Add("考核上限", row["考核上限"].ToString());
                ht.Add("提示信息", row["提示信息"].ToString());
                ht.Add("机组", row["机组"].ToString());
                ht.Add("故障类型ID", row["故障类型ID"].ToString());

                list.Add(ht);
            }

            object obj = new
            {
                total = count,
                rows = list
            };
            string result = JsonConvert.SerializeObject(obj);
            Response.Write(result);
            Response.End();
        }
Exemple #7
0
 private void Insert_data(string msg)
 {
     BLL.PerformanceAlarm.BLLWarningThreshold BUP = new BLL.PerformanceAlarm.BLLWarningThreshold();
     BUP.Insert_data(msg);
 }
 private void Insert_data(string msg)
 {
     BLL.PerformanceAlarm.BLLWarningThreshold BUP = new BLL.PerformanceAlarm.BLLWarningThreshold();
     BUP.Insert_data(msg);
 }