コード例 #1
0
        List <Mod_TMO_ORDER> lst        = new List <Mod_TMO_ORDER>();//订单列表
        private void btn_query_order_Click(object sender, EventArgs e)
        {
            ////查询已评价、未完成的不锈钢计划

            if (this.dtp_form1.Text.Trim() == "" || this.dtp_end1.Text == "")
            {
                MessageBox.Show("请输入查询日期!");
                return;
            }
            WaitingFrom.ShowWait("订单正在加载,请稍后...");


            string strDDMin = "";
            string strDDMax = "";

            string strOrderNOlist = "";


            strDDMin = Convert.ToDateTime(this.dtp_form1.Text).ToShortDateString() + " 00:00:00";
            strDDMax = Convert.ToDateTime(this.dtp_end1.Text).ToShortDateString() + " 23:59:59";



            lst = bll_order.GetBXGOrder(strDDMin, strDDMax, this.txt_gz1.Text, this.txt_zxbz1.Text.Trim(), this.txt_Spec.Text.Trim(), strOrderNOlist);

            this.modTMOORDERBindingSource.DataSource       = lst;
            this.gv_tmo_order.OptionsView.ColumnAutoWidth  = false;
            this.gv_tmo_order.OptionsSelection.MultiSelect = true;
            SetGridViewRowNum.SetRowNum(gv_tmo_order);
            this.gv_tmo_order.BestFitColumns();
            WaitingFrom.CloseWait();
        }