protected void BindLabOrder()
        {
            DataTable dtOrder = GetDataTable("LAB_ORDER", 0, "");

            RadGridLabOrder.DataSource = dtOrder;
            RadGridLabOrder.DataBind();
            if (RadGridLabOrder.Items.Count == 0)
            {
                RadGridLabOrder.DataSource = new Object[0];
            }
        }
示例#2
0
        //protected DataTable GetDataTable(string flag, Int32 labId, string LabName)
        //{
        //    BIQTouchLabFields objLabFields = new BIQTouchLabFields();
        //    objLabFields.Flag = flag;
        //    objLabFields.LabTestID = labId;
        //    objLabFields.LabTestName = LabName;
        //    ILabFunctions theILabManager;
        //    theILabManager = (ILabFunctions)ObjectFactory.CreateInstance("BusinessProcess.Laboratory.BLabFunctions, BusinessProcess.Laboratory");
        //    DataSet Ds = theILabManager.IQTouchGetlabDemo(objLabFields);
        //    DataTable dt = Ds.Tables[0];
        //    return dt;
        //}
        protected void BindLabOrder()
        {
            BIQTouchLabFields objLabFields = new BIQTouchLabFields();
            ILabFunctions     theILabManager;

            theILabManager          = (ILabFunctions)ObjectFactory.CreateInstance("BusinessProcess.Laboratory.BLabFunctions, BusinessProcess.Laboratory");
            objLabFields.Flag       = "";
            objLabFields.Ptnpk      = Convert.ToInt32(Request.QueryString["PatientID"]);
            objLabFields.LocationId = Int32.Parse(Session["AppLocationId"].ToString());


            DataSet Ds = theILabManager.IQTouchLaboratory_GetLabOrder(objLabFields);

            DataTable dtOrder = Ds.Tables[0];

            RadGridLabOrder.DataSource = dtOrder;
            RadGridLabOrder.DataBind();
            if (RadGridLabOrder.Items.Count == 0)
            {
                RadGridLabOrder.DataSource = new Object[0];
            }
        }