void _tableview_StateRowEnvent(string id) { int orderid = int.Parse(id); string reviewflag = dbOperation.GetDbHelper().GetSingle(string.Format("select ReviewFlag from t_detect_report where ORDERID = '{0}'", orderid)).ToString(); if (reviewflag == "1") { detectDetailsReviewSchool det = new detectDetailsReviewSchool(dbOperation, orderid); det.ShowDialog(); } else { detectdetailsSchool det = new detectdetailsSchool(dbOperation, orderid); det.ShowDialog(); } }
void _tableview_DetailsRowEnvent(string id) { int orderid = int.Parse(id); switch (dept_type) { case "0": detectDetailsReview det = new detectDetailsReview(dbOperation, orderid); det.ShowDialog(); break; case "1": detectDetailsReviewLt detlt = new detectDetailsReviewLt(dbOperation, orderid); detlt.ShowDialog(); break; case "2": detectDetailsReviewCy detcy = new detectDetailsReviewCy(dbOperation, orderid); detcy.ShowDialog(); break; case "3": detectDetailsReviewSchool detschool = new detectDetailsReviewSchool(dbOperation, orderid); detschool.ShowDialog(); break; default: break; } }