Beispiel #1
0
        void View()
        {
            if (GridSearch.XGReport.ActiveRecord == null)
            {
                return;
            }
            string nd51 = ((GridSearch.XGReport.ActiveRecord as DataRecord).DataItem as DataRowView)["nd51"].ToString();
            int    so_lien_hien_thoi = Convert.ToInt32(StartUp.GetSo_lien((DataRecord)GridSearch.XGReport.ActiveRecord, StartUp.DsTrans.Tables[0].DefaultView[0]["stt_rec"].ToString()));

            if (so_lien_hien_thoi > 0)
            {
                DsPrint.Tables["TablePH"].DefaultView[0]["ban_sao"] = "BẢN SAO";
            }
            //string _str_sl_in = StartUp.GetSl_in(StartUp.DsTrans.Tables[0].DefaultView[0]["stt_rec"].ToString()).ToString();
            //if (!_str_sl_in.Equals("0"))
            //{
            //    DsPrint.Tables[0].DefaultView[0]["ban_sao"] = "BẢN SAO";
            //    StartUp.DsTrans.Tables[0].DefaultView[0]["sl_in"] = _str_sl_in;
            //}
            DsPrint.Tables[0].DefaultView[0]["so_ct_goc"] = txtctu0.Text;

            InsertRowCT(nd51);

            StartUp.SetPhIn(this.DataContext as DataTable);
            GridSearch.V_Xem();
            ResetTableCt();
        }