List<Terminal> NotStart = new List<Terminal>();
int countALL = 0;//把Planstart统计的数量赋给一个比较的变量
bool bFirstCall_gvTerminal = true; //设置第一次加载
private void GridViewDataBindgvTerminal()
{
//try
//{
string userName = ((Login)this.Owner).passUserName;
int stateNoStart = (int)WorkOrderDtlState.NotStart;
int TWCNID = ((Login)this.Owner).passTWCID;
NotStart.AddRange(client.GetUserTerminal(TWCNID, stateNoStart));
gvTerminal.AutoGenerateColumns = false;
if (NotStart != null && NotStart.Count > 0)
gvTerminal.DataSource = NotStart;
//}
//catch (Exception)
//{
// Reconnection();
//