示例#1
0
        protected void CallbackPanelWaybill_Callback(object sender, CallbackEventArgsBase e)
        {
            //string sYear = ComboBoxYear.Text;
            //string sWeekNum = ComboBoxWeekNum.Text;
            string sCustCode = TextBoxCustCode.Text;

            int iYear    = 0;
            int iWeekNum = 0;

            if (!string.IsNullOrEmpty(ComboBoxYear.Text))
            {
                iYear = Convert.ToInt32(ComboBoxYear.Text);
            }
            if (!string.IsNullOrEmpty(ComboBoxWeekNum.Text))
            {
                iWeekNum = Convert.ToInt32(ComboBoxWeekNum.Text);
            }

            gridWayBill.DataSource   = HLSSOA.HLSSOAWaybills(iYear, iWeekNum, sCustCode);
            gridWayBill.KeyFieldName = "Waybill";
            gridWayBill.DataBind();
        }