示例#1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            DepDataBind();
            MonthDataBind();
            //getpici();
            cmbmonth.SelectedItem.Text = DateTime.Now.Month.ToString();
            if (Request["depid"] != null && Request["pici"] != null && Request["time"] != null)
            {
                string time = "";
                int    depid = 0, pici = 0, Year = 0, Month = 0;
                if (Request["depid"] != null)
                {
                    depid = common.IntSafeConvert(Request["depid"]);
                }
                if (Request["pici"] != null)
                {
                    pici = common.IntSafeConvert(Request["pici"]);
                }
                if (Request["time"] != null)
                {
                    time = Request["time"].ToString();
                }
                DateTime mydate = new DateTime();
                try
                {
                    mydate = Convert.ToDateTime(time);
                }
                catch
                {
                    mydate = DateTime.Now;
                }
                Year  = mydate.Year;
                Month = mydate.Month;
                AuditStoreBind1(depid, Year, Month, pici);
            }

            DataTable dt = BG_SelMonPayPlanLogic.GetMonPayPlanTotalAudit(1);
            GTPdbsxStore.DataSource = dt;
            GTPdbsxStore.DataBind();
        }
        cmbdept.Items.Insert(0, new Ext.Net.ListItem("全部", "0"));
        cmbpici.Items.Insert(0, new Ext.Net.ListItem("全部", "0"));
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         DataTable dt = new DataTable( );
         if (Request["Audit"] != null && Request["Audit"].ToString() == "0")
         {
             hidsta.Value = 0;
             dt           = BG_SelMonPayPlanLogic.GetMonPayPlanTotalAudit(0);
         }
         else if (Request["Audit"] != null && Request["Audit"].ToString() == "1")
         {
             hidsta.Value = 1;
             dt           = BG_SelMonPayPlanLogic.GetMonPayPlanTotalAudit(1);
         }
         GTPdbsxStore.DataSource = dt;
         GTPdbsxStore.DataBind();
     }
 }