Beispiel #1
0
        void _tableview_DetailsRowEnvent(string id)
        {
            int           orderid = int.Parse(id);
            detectdetails det     = new detectdetails(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")
            {
                detectDetailsReview det = new detectDetailsReview(dbOperation, orderid);
                det.ShowDialog();
            }
            else
            {
                detectdetails det = new detectdetails(dbOperation, orderid);
                det.ShowDialog();
            }
        }
        void _tableview_StateRowEnvent(string id)
        {
            int    orderid    = int.Parse(id);
            string reviewflag = operationContract.GetReviewFlag("p", orderid);

            if (reviewflag == "1")
            {
                detectDetailsReview det = new detectDetailsReview(orderid);
                det.ShowDialog();
            }
            else
            {
                detectdetails det = new detectdetails(orderid);
                det.ShowDialog();
            }
        }
 void _tableview_DetailsRowEnvent(string id)
 {
     int orderid = int.Parse(id);
     detectdetails det = new detectdetails(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")
     {
         detectDetailsReview det = new detectDetailsReview(dbOperation, orderid);
         det.ShowDialog();
     }
     else
     {
         detectdetails det = new detectdetails(dbOperation, orderid);
         det.ShowDialog();
     }
     
 }