Exemplo n.º 1
0
        //计算全部在下面
        protected void Button_Calculate_Click(object sender, EventArgs e)
        {
            LiveData_BLL liveBll   = new LiveData_BLL();
            DateTime     startTime = DateTime.Parse(DropDownList_Year.SelectedItem.Value + "-" + DropDownList_Month.SelectedItem.Value + "-01");
            DateTime     endTime   = startTime.AddMonths(1);

            if (liveBll.DataCheck(startTime, DropDownList_YBTime.SelectedItem.Value))
            {
                JavaScriptHelper.Loading("大人请稍后,奴才正在拼命计算...");


                Score_Day_BLL bll = new Score_Day_BLL();
                if (DropDownList_YBTime.SelectedItem.Value == "08时")
                {
                    bll.Caculate08_ByYbUser(startTime, endTime);
                }
                else
                {
                    bll.Caculate20_ByYbUser(startTime, endTime);
                }
                JavaScriptHelper.UnLoading();

                Response.Write("<script language=javascript defer>alert('计算完成!');</script>");
            }
            else
            {
                Response.Write("<script language=javascript defer>alert('抱歉,该月实况数据不完整,请校验!');</script>");
            }
        }
Exemplo n.º 2
0
        protected void Btn_Import_TempAndRain20_Click(object sender, EventArgs e)
        {
            JavaScriptHelper.Loading("大人请稍后,奴才正在拼命计算...");

            DateTime     date    = DateTime.Parse(DropDownList_Year.SelectedItem.Value + "-" + DropDownList_Month.SelectedItem.Value + "-01");
            LiveData_BLL bll     = new LiveData_BLL();
            string       message = bll.DataImportAFile(date);

            Label_DataMiss.Text = message;
            JavaScriptHelper.UnLoading();
        }
Exemplo n.º 3
0
        protected void Btn_Import_MonthEarlier_Click(object sender, EventArgs e)
        {
            JavaScriptHelper.Loading("大人请稍后,奴才正在拼命计算...");

            DateTime      date    = DateTime.Parse(DropDownList_Year.SelectedItem.Value + "-" + DropDownList_Month.SelectedItem.Value + "-01");
            LiveData_BLL  bll     = new LiveData_BLL();
            StringBuilder message = new StringBuilder();

            message.Append("1、" + bll.DataImportTemp08(date, 3));
            message.Append("2、" + bll.DataImportTemp20(date, 3));
            Label_DataMiss.Text = message.ToString();
            JavaScriptHelper.UnLoading();
        }
Exemplo n.º 4
0
        protected void Button_Add08_Click(object sender, EventArgs e)
        {
            Score_Day_BLL bll       = new Score_Day_BLL();
            DateTime      startTime = DateTime.Parse(DropDownList_Year.SelectedItem.Value + "-" + DropDownList_Month.SelectedItem.Value + "-01");
            DateTime      endTime   = startTime.AddMonths(1);

            JavaScriptHelper.Loading("大人请稍后,奴才正在拼命计算...");

            int count = bll.Add08_User(startTime, endTime);

            JavaScriptHelper.UnLoading();

            Response.Write("<script language=javascript defer>alert('计算完成,共计:" + count.ToString() + "条数据!');</script>");
        }