Exemplo n.º 1
0
 void _tableview_DetailsRowEnvent(string id)
 {
     int orderid = int.Parse(id);
     detectdetailsCy det = new detectdetailsCy(dbOperation, orderid);
     det.ShowDialog();
 }
        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")
            {
                detectDetailsReviewCy det = new detectDetailsReviewCy(dbOperation, orderid);
                det.ShowDialog();
            }
            else
            {
                detectdetailsCy det = new detectdetailsCy(dbOperation, orderid);
                det.ShowDialog();
            }

        }