예제 #1
0
 /// <summary>
 /// 刷新界面
 /// </summary>
 void Refsh()
 {
     cc.GetSortTroughInfo("s", 1);
     batch = bc.GetBatchDetail().Content;
     batchdata.DataSource = batch;
     //  batchdata.DataSource = bc.GetBatchDetail().ResultObject;
 }
예제 #2
0
        void Bind()
        {
            var a = cc.GetSortTroughInfo();

            if (a.IsSuccess)
            {
                dgvdate.DataSource = a.Content;
            }
            else
            {
                MessageBox.Show(a.MessageText);
            }
            box_condition.Items.Add("卷烟名称");
            box_condition.Items.Add("卷烟编码");
            box_condition.SelectedIndex = 0;
        }