/// <summary> /// 查询数据 /// </summary> private void ReadData(string workflowname) { string condition = ""; BLL.WORKFLOW workflowBll = new BLL.WORKFLOW(); Model.WORKFLOW workflowMdl = new Model.WORKFLOW(); workflowMdl = workflowBll.GetModel(workflowname); int workflowno = workflowMdl.WORKFLOWNO; if (workflowno > 0) { BLL.WORKFLOWSET workflowsetBll = new BLL.WORKFLOWSET(); condition = " WORKFLOWSET.WORKFLOWNO = " + workflowno.ToString(); this.gc_workflowset.DataSource = workflowsetBll.GetList(condition).Tables[0]; this.gridView1.BestFitColumns(); DBUtility.ToolHelper.DrawRowIndicator(gridView1, 40); DBUtility.ToolHelper.SetLineColorofGridView(this.gridView1); } }