protected void dgvStationeryList_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        {
            HyperLink link = (HyperLink)e.Row.Items.FindItemByKey("AddToTable").FindControl("AddToTable");

            link.NavigateUrl = "~/departmentUI/Employee/RequestStationery.aspx?action=add&itemCode=" + e.Row.DataKey[0];
            //Response.Redirect("~/departmentUI/Employee/RequestStationery.aspx?action=add&itemCode=" + e.Row.DataKey[0]);
        }
예제 #2
0
 protected void DgvDepartmentList_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
 {
     try
     {
         HyperLink link = (HyperLink)e.Row.Items.FindItemByKey("BlackUnblackList").FindControl("BlackUnblackList");
         link.NavigateUrl = "~/storeUI/SuperVisor_Manager/BlackListDepartment.aspx?department=" + e.Row.DataKey[0];
     }
     catch (Exception ex)
     {
         Response.Write(ex.Message);
     }
 }
예제 #3
0
        //protected void DgvDiscrepancyReport_DataFiltering(object sender,
        //    Infragistics.Web.UI.GridControls.FilteringEventArgs e)
        //{
        //    FillReport();
        //}

        //protected void DgvDiscrepancyReport_PageIndexChanged(object sender,
        //    Infragistics.Web.UI.GridControls.PagingEventArgs e)
        //{
        //    FillReport();
        //}

        protected void DgvDiscrepancyReportList_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        {
            try
            {
                HyperLink link = (HyperLink)e.Row.Items.FindItemByKey("DiscrepancyId").FindControl("DiscrepancyId");
                link.NavigateUrl = "~/storeUI/SuperVisor_Manager/IssueAdjustmentVoucher.aspx?discrepancyId=" + e.Row.DataKey[0];
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }
        }
        //protected void DgvAdjustmentVoucherList_RowSelectionChanged(object sender,
        //    Infragistics.Web.UI.GridControls.SelectedRowEventArgs e)
        //{
        //    voucherNo = e.CurrentSelectedRows[0].Attributes["VoucherNo"].ToString();
        //}

        protected void DgvAdjustmentVoucherList_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        {
            try
            {
                //voucherNo = e.Row.DataKey[0].ToString();
                HyperLink link = (HyperLink)e.Row.Items.FindItemByKey("VoucherNo").FindControl("VoucherNo");
                link.NavigateUrl = "~/storeUI/SuperVisor_Manager/ViewAdjustmentVoucherList.aspx?voucherNo=" + e.Row.DataKey[0];
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }
        }
예제 #5
0
        protected void grdChartDetails_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        {
            try
            {
                if (e.Row.Items.FindItemByKey("JMChartID") != null && !String.IsNullOrEmpty(e.Row.Items.FindItemByKey("JMChartID").Text))
                {
                    e.Row.Items.FindItemByKey("C").CssClass = "NotificationRules";
                }
            }

            catch (Exception objErr)
            {
                ((BasePage)this.Page).ShowMsg(MsgType.Error, FrwkMsg.OP_FAIL, objErr);
                throw;
            }
        }
        //protected void DgvDepartmentList_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        //{
        //    try
        //    {
        //        HyperLink link = (HyperLink)e.Row.Items.FindItemByKey("BlackUnblackList").FindControl("BlackUnblackList");
        //        link.NavigateUrl = "~/storeUI/SuperVisor_Manager/BlackListDepartment.aspx?department=" + e.Row.DataKey[0];
        //    }
        //    catch (Exception ex)
        //    {
        //        Response.Write(ex.Message);
        //    }

        //}

        protected void dgvCollections_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        {
            try
            {
                idArray = new List <string>();
                object[] array = e.Row.DataKey;
                foreach (object obj in array)
                {
                    idArray.Add(obj.ToString());
                }
                //idArray =(string[]) e.Row.DataKey;
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }
        }
예제 #7
0
 protected void grdMedreqlist_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
 {
     try
     {
         if (!String.IsNullOrWhiteSpace(e.Row.Items.FindItemByKey("JMMedPrescriptionHistID").Text))
         {
             e.Row.CssClass = "grdGColor";
         }
         else
         {
             e.Row.CssClass = "grdBcolor";
         }
     }
     catch (Exception objExp)
     {
         ShowMsg(MsgType.Error, FrwkMsg.PAGE_ERR, objExp);
     }
 }
        protected void dgvRequisitionList_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        {
            if ((SystemStoreInventorySystemUtil.Converter.objToRequisitionStatus(e.Row.Items[3].Text) == SystemStoreInventorySystemUtil.Constants.REQUISITION_STATUS.REJECTED) ||
                (SystemStoreInventorySystemUtil.Converter.objToRequisitionStatus(e.Row.Items[3].Text) == SystemStoreInventorySystemUtil.Constants.REQUISITION_STATUS.SUBMITTED) ||
                (SystemStoreInventorySystemUtil.Converter.objToRequisitionStatus(e.Row.Items[3].Text) == SystemStoreInventorySystemUtil.Constants.REQUISITION_STATUS.WITHDRAW) ||
                (SystemStoreInventorySystemUtil.Converter.objToRequisitionStatus(e.Row.Items[3].Text) == SystemStoreInventorySystemUtil.Constants.REQUISITION_STATUS.COMPLETE))
            {
                e.Row.Items[0].CssClass = "hidden";
            }
            int number = 0;

            if (int.TryParse(e.Row.Items[3].Text, out number))
            {
                e.Row.Items[3].Text = SystemStoreInventorySystemUtil.Converter.GetRequisitionStatusText(SystemStoreInventorySystemUtil.Converter.objToRequisitionStatus(e.Row.Items[3].Text));
            }
            HyperLink link = (HyperLink)e.Row.Items.FindItemByKey("requisitionID").FindControl("requisitionID");

            link.NavigateUrl = "~/departmentUI/Employee/CheckRequisition.aspx?RequisitionIDIndex=" + link.Text;
        }
예제 #9
0
        protected void grdMedLog_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        {
            try
            {
                int iRow = e.Row.Index;
                if (e.Row.Items.FindItemByKey("Emp").Text != "")
                {
                    e.Row.Items.FindItemByKey("Emp").Tooltip = e.Row.Items.FindItemByKey("FullName").Text;
                }

                if (grdMedLog.GetDateTime(iRow, "ACTIVITYDTTM") != DateTime.MinValue)
                {
                    DateTime objdate = grdMedLog.GetDateTime(iRow, "ACTIVITYDTTM");
                    grdMedLog.SetValue(iRow, "MedDateTime", objdate.ToString("MM/dd/yy HH:mm"));
                }
            }
            catch (Exception objErr)
            {
                ShowMsg(MsgType.Error, FrwkMsg.PAGE_ERR, objErr);
            }
        }
예제 #10
0
        //protected void WebMonthCalendar1_SelectedDateChanged(object sender, Infragistics.Web.UI.EditorControls.CalendarSelectedDateChangedEventArgs e) {
        //	DateTime fromDate = e.NewDate;
        //	DateTime toDate = e.NewDate;
        //	string tempDate = null;

        //	if (WebMonthCalendar1.SelectedDates.IndividualDates == null) {
        //		// user selected multiple dates on calendar
        //		bindTasks(WebMonthCalendar1.SelectedDates.RangeMin, WebMonthCalendar1.SelectedDates.RangeMax);
        //	}
        //	else {
        //		// user picked a single date on calendar
        //		tempDate = string.Format("{0} 11:59:59 PM", fromDate.ToShortDateString());

        //		toDate = Convert.ToDateTime(tempDate);

        //		bindTasks(fromDate, toDate);
        //	}
        //}

        protected void gvTasks_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        {
            LeadTask task = null;

            if (e.Row.DataItem != null)
            {
                task = (LeadTask)e.Row.DataItem;

                if (task.statusName == "Expired")
                {
                    e.Row.CssClass = "redstar";
                }

                HyperLink hlnkLead = e.Row.Items.FindItemByKey("lead_name").FindControl("hlnkLead") as HyperLink;

                if (hlnkLead != null && task.lead_id != null)
                {
                    hlnkLead.Text = task.lead_name;

                    hlnkLead.NavigateUrl = "~/Protected/NewLead.aspx?q=" + Core.SecurityManager.EncryptQueryString(task.lead_id.ToString());
                }
            }
        }
예제 #11
0
        protected void grdDental_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        {
            try
            {
                int iRow = e.Row.Index;
                if (grdDental.GetValue(iRow, "DentalVisitNo") != null)
                {
                    if (!String.IsNullOrEmpty(e.Row.Items.FindItemByKey("DentalVisitNo").Text))
                    {
                        grdDental.SetValue(iRow, "DentalVisitNo", Counter.GetFormattedNo(CounterType.DentalVisitNo, grdDental.GetValue(iRow, "DentalVisitNo")));
                    }
                }

                if (!String.IsNullOrEmpty(e.Row.Items.FindItemByKey("JMDentistVisitID").Text))
                {
                    e.Row.Items.FindItemByKey("Notes").CssClass = "NotificationRules";
                }
                if (!String.IsNullOrEmpty(e.Row.Items.FindItemByKey("Procedure").Text))
                {
                    e.Row.Items.FindItemByKey("Procedure").Tooltip = e.Row.Items.FindItemByKey("Procedure").Text;
                }

                if (!String.IsNullOrEmpty(e.Row.Items.FindItemByKey("Diseases").Text))
                {
                    e.Row.Items.FindItemByKey("Diseases").Tooltip = e.Row.Items.FindItemByKey("Diseases").Text;
                }

                if (!String.IsNullOrEmpty(e.Row.Items.FindItemByKey("Medications").Text))
                {
                    e.Row.Items.FindItemByKey("Medications").Tooltip = e.Row.Items.FindItemByKey("Medications").Text;
                }
            }
            catch (Exception objError)
            {
                throw objError;
            }
        }
예제 #12
0
        protected void grdScheEvent_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        {
            string sSubType = grdScheEvent.GetString(e.Row.Index, "SubType").Trim();

            if (sSubType != "H05" && sSubType != "H06" && sSubType != "H07" && sSubType != "H08")
            {
                if (grdScheEvent.GetDecimal(e.Row.Index, "CostAmt") == grdScheEvent.GetDecimal(e.Row.Index, "PaidAmt") && grdScheEvent.GetBool(e.Row.Index, "IsActive") && grdScheEvent.GetDecimal(e.Row.Index, "CostAmt") != Decimal.MinValue && grdScheEvent.GetDecimal(e.Row.Index, "CostAmt") != 0)
                {
                    e.Row.CssClass = "GreenColor";
                }
            }

            if (!grdScheEvent.GetBool(e.Row.Index, "IsActive"))
            {
                e.Row.CssClass = "GrayColor";
            }

            DateTime NowDttm = DateTime.Now;

            if (grdScheEvent.GetString(e.Row.Index, "SignIn").Trim() == "out" && (grdScheEvent.GetDateTime(e.Row.Index, "END") < NowDttm) && grdScheEvent.GetBool(e.Row.Index, "IsActive"))
            {
                e.Row.CssClass = "BrownColor";
            }

            if (grdScheEvent.GetShort(e.Row.Index, "SignDone") == 1 && grdScheEvent.GetBool(e.Row.Index, "IsActive"))
            {
                e.Row.CssClass = "RoyalBlueColor";
            }



            string sDueTime = grdScheEvent.GetString(e.Row.Index, "END").Trim();
            string sSign    = grdScheEvent.GetString(e.Row.Index, "SignIn").Trim();

            if (sDueTime != "" && sSign == "In" && grdScheEvent.GetBool(e.Row.Index, "IsActive"))
            {
                DateTime curTime = DateTime.Now;

                DateTime dTime       = Convert.ToDateTime(sDueTime);
                DateTime dtDueTime   = new DateTime(dTime.Year, dTime.Month, dTime.Day, dTime.Hour, dTime.Minute, 0);
                DateTime RealCurTime = new DateTime(curTime.Year, curTime.Month, curTime.Day, curTime.Hour, curTime.Minute, 0);
                if (dtDueTime < RealCurTime)
                {
                    e.Row.CssClass = "BldRedColor";
                }
                else
                {
                    e.Row.CssClass = "BoldBlueColor";
                }
            }

            if (grdScheEvent.GetDateTime(e.Row.Index, "SignInDttm") != DateTime.MinValue)
            {
                string signInDttm = grdScheEvent.GetString(e.Row.Index, "SignInDttm").Trim();
                if (sDueTime != "" && signInDttm != "" && grdScheEvent.GetBool(e.Row.Index, "IsActive"))
                {
                    DateTime dTime     = Convert.ToDateTime(sDueTime);
                    DateTime dtDueTime = new DateTime(dTime.Year, dTime.Month, dTime.Day, dTime.Hour, dTime.Minute, 0);
                    DateTime sInDttm   = Convert.ToDateTime(signInDttm);
                    DateTime dtSInDttm = new DateTime(sInDttm.Year, sInDttm.Month, sInDttm.Day, sInDttm.Hour, sInDttm.Minute, 0);
                    if (dtSInDttm > dtDueTime)
                    {
                        e.Row.CssClass = "RedColor";
                    }
                }
            }

            if (grdScheEvent.GetValue(e.Row.Index, "EventNo") != null)
            {
                if (!String.IsNullOrEmpty(e.Row.Items.FindItemByKey("EventNo").Text))
                {
                    grdScheEvent.SetValue(e.Row.Index, "EventNo", Counter.GetFormattedNo(CounterType.EventNo, grdScheEvent.GetValue(e.Row.Index, "EventNo")));
                }
            }
        }
        protected void dgvCollectionList_InitializeRow1(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        {
            HyperLink link = (HyperLink)e.Row.Items.FindItemByKey("CollectionID").FindControl("TripIDLink");

            link.NavigateUrl = "~/departmentUI/Representative/UpdateCollectionByItems.aspx?CollectionIdIndex=" + link.Text;
        }
        protected void dgvStationeryList_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        {
            HyperLink link = (HyperLink)e.Row.Items.FindItemByKey("ItemNo").FindControl("ItemNo");

            link.NavigateUrl = "~/storeUI/Clerk/ViewStockCard.aspx?ItemDescription=" + e.Row.Items[2].Text;
        }
예제 #15
0
        protected void grdMedicalVital_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        {
            try
            {
                #region Weight
                if (!String.IsNullOrEmpty(e.Row.Items.FindItemByKey("Weight").Text))
                {
                    switch (e.Row.Items.FindItemByKey("WeightType").Text)
                    {
                    case "1":
                        WeightType = " L";
                        break;

                    case "2":
                        WeightType = " K";
                        break;

                    default:
                        WeightType = string.Empty;
                        break;
                    }
                    switch (e.Row.Items.FindItemByKey("WeightStatus").Text)
                    {
                    case "1":
                        WeightStatus = " A";
                        break;

                    case "2":
                        WeightStatus = " S";
                        break;

                    default:
                        WeightStatus = string.Empty;
                        break;
                    }

                    e.Row.Items.FindItemByKey("WType").Text   = e.Row.Items.FindItemByKey("WeightType").Text;
                    e.Row.Items.FindItemByKey("WStatus").Text = e.Row.Items.FindItemByKey("WeightStatus").Text;

                    e.Row.Items.FindItemByKey("WeightWithType").Text = e.Row.Items.FindItemByKey("Weight").Text + WeightType + WeightStatus;
                }
                #endregion

                #region Temperature
                if (!String.IsNullOrEmpty(e.Row.Items.FindItemByKey("Temperature").Text))
                {
                    switch (e.Row.Items.FindItemByKey("TemperatureType").Text)
                    {
                    case "1":
                        TemperatureType = " O";
                        break;

                    case "2":
                        TemperatureType = " R";
                        break;

                    case "3":
                        TemperatureType = " A";
                        break;

                    case "4":
                        TemperatureType = " E";
                        break;

                    case "5":
                        TemperatureType = "T";
                        break;

                    default:
                        TemperatureType = string.Empty;
                        break;
                    }
                    e.Row.Items.FindItemByKey("TemperatureWithType").Text = e.Row.Items.FindItemByKey("Temperature").Text + TemperatureType;
                }
                #endregion

                #region BloodPressure
                if (!String.IsNullOrEmpty(e.Row.Items.FindItemByKey("BloodPressure").Text) || !String.IsNullOrEmpty(e.Row.Items.FindItemByKey("BloodPressureMax").Text))
                {
                    switch (e.Row.Items.FindItemByKey("BloodPressureType").Text)
                    {
                    case "1":
                        BloodPressureType = " L";
                        break;

                    case "2":
                        BloodPressureType = " R";
                        break;

                    default:
                        BloodPressureType = string.Empty;
                        break;
                    }
                    switch (e.Row.Items.FindItemByKey("BloodPressureStatus").Text)
                    {
                    case "1":
                        BloodPressureStatus = " S";
                        break;

                    case "2":
                        BloodPressureStatus = " L";
                        break;

                    case "3":
                        BloodPressureStatus = " S";
                        break;

                    default:
                        BloodPressureStatus = string.Empty;
                        break;
                    }

                    e.Row.Items.FindItemByKey("BPWithType").Text = e.Row.Items.FindItemByKey("BloodPressure").Text + '/' + e.Row.Items.FindItemByKey("BloodPressureMax").Text + BloodPressureType + BloodPressureStatus;
                }
                #endregion

                #region PulseRhythm
                if (!String.IsNullOrEmpty(e.Row.Items.FindItemByKey("PulseWithType").Text))
                {
                    switch (e.Row.Items.FindItemByKey("PulseRhythm").Text)
                    {
                    case "1":
                        PulseRhythm = " L";
                        break;

                    case "2":
                        PulseRhythm = " R";
                        break;

                    default:
                        PulseRhythm = string.Empty;
                        break;
                    }
                    e.Row.Items.FindItemByKey("Pulse").Text = e.Row.Items.FindItemByKey("PulseWithType").Text + PulseRhythm;
                }
                #endregion


                #region SPOX
                SpoxAtRest   = e.Row.Items.FindItemByKey("SpoxAtRest").Text;
                SpoxActivity = e.Row.Items.FindItemByKey("SpoxActivity").Text;
                if (!String.IsNullOrEmpty(SpoxAtRest) && !String.IsNullOrEmpty(SpoxActivity))
                {
                    e.Row.Items.FindItemByKey("Spox").Text = SpoxAtRest + " , " + SpoxActivity;
                }
                else if (String.IsNullOrEmpty(SpoxAtRest) && !String.IsNullOrEmpty(SpoxActivity))
                {
                    e.Row.Items.FindItemByKey("Spox").Text = SpoxActivity;
                }
                else if (!String.IsNullOrEmpty(SpoxAtRest) && String.IsNullOrEmpty(SpoxActivity))
                {
                    e.Row.Items.FindItemByKey("Spox").Text = SpoxAtRest;
                }

                #endregion


                if (e.Row.Items.FindItemByKey("Cmts").Text != null && !String.IsNullOrEmpty(e.Row.Items.FindItemByKey("Cmts").Text))
                {
                    if (KPIHlp.CVI64(e.Row.Items.FindItemByKey("Cmts").Text) >= 1)
                    {
                        e.Row.Items.FindItemByKey("Notes").CssClass = "VitalNotes";
                    }
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
        protected void DgvViewStationeryRetrievalList_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        {
            HyperLink link = (HyperLink)e.Row.Items.FindItemByKey("retrievalNo").FindControl("retrievalNo");

            link.NavigateUrl = "~/storeUI/Clerk/ManageStationeryRetrievalList.aspx?retrievalId=" + link.Text;
        }
예제 #17
0
        protected void grdMarhistory_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
        {
            try
            {
                if (!String.IsNullOrEmpty(hdnSubAgencyParam.Value) && hdnSubAgencyParam.Value == "1")
                {
                    if (State.gMultiJuris)
                    {
                        e.Row.Items.FindItemByKey("KPIJurisAlias").Column.Hidden       = false;
                        e.Row.Items.FindItemByKey("KPIJurisAlias").Column.Width        = Unit.Percentage(5);
                        e.Row.Items.FindItemByKey("SubAgencyCode").Column.Width        = Unit.Percentage(6);
                        e.Row.Items.FindItemByKey("SubAgencyCode").Tooltip             = e.Row.Items.FindItemByKey("SubAgencyName").Text;
                        e.Row.Items.FindItemByKey("Dosage").Column.Width               = Unit.Percentage(8);
                        e.Row.Items.FindItemByKey("DispenseDesc").Column.Width         = Unit.Percentage(8);
                        e.Row.Items.FindItemByKey("StatusDesc").Column.Width           = Unit.Percentage(8);
                        e.Row.Items.FindItemByKey("LastAdministeredDttm").Column.Width = Unit.Percentage(10);
                    }
                    else
                    {
                        e.Row.Items.FindItemByKey("SubAgencyCode").Column.Width        = Unit.Percentage(6);
                        e.Row.Items.FindItemByKey("SubAgencyCode").Tooltip             = e.Row.Items.FindItemByKey("SubAgencyName").Text;
                        e.Row.Items.FindItemByKey("Dosage").Column.Width               = Unit.Percentage(8);
                        e.Row.Items.FindItemByKey("DispenseDesc").Column.Width         = Unit.Percentage(8);
                        e.Row.Items.FindItemByKey("StatusDesc").Column.Width           = Unit.Percentage(8);
                        e.Row.Items.FindItemByKey("LastAdministeredDttm").Column.Width = Unit.Percentage(15);
                    }
                }
                else
                {
                    if (State.gMultiJuris)
                    {
                        e.Row.Items.FindItemByKey("KPIJurisAlias").Column.Hidden = true;
                    }
                    else
                    {
                        e.Row.Items.FindItemByKey("Dosage").Column.Width               = Unit.Percentage(10);
                        e.Row.Items.FindItemByKey("DispenseDesc").Column.Width         = Unit.Percentage(10);
                        e.Row.Items.FindItemByKey("StatusDesc").Column.Width           = Unit.Percentage(10);
                        e.Row.Items.FindItemByKey("LastAdministeredDttm").Column.Width = Unit.Percentage(15);
                        e.Row.Items.FindItemByKey("SubAgencyCode").Column.Hidden       = true;
                    }
                }
            }
            catch (Exception)
            {
                throw;
            }

            //if (State.gMultiJuris && KPIHlp.CVI32(hdnJurisId.Value) != Int32.MinValue && KPIHlp.CVI32(hdnJurisId.Value) != State.sJurisID)
            //{
            //    e.Row.Items.FindItemByKey("KPIJurisAlias").Column.Hidden = false;
            //    e.Row.Items.FindItemByKey("KPIJurisAlias").Column.Width = Unit.Percentage(5);
            //    e.Row.Items.FindItemByKey("LastAdministeredDttm").Column.Width = Unit.Percentage(10);

            //}
            //else
            //{
            //    e.Row.Items.FindItemByKey("LastAdministeredDttm").Column.Width = Unit.Percentage(15);
            //    e.Row.Items.FindItemByKey("KPIJurisAlias").Column.Hidden = true;

            //}


            //if (!String.IsNullOrEmpty(hdnSubAgencyParam.Value) && hdnSubAgencyParam.Value == "1")
            //{
            //    e.Row.Items.FindItemByKey("SubAgencyCode").Column.Width = Unit.Percentage(6);
            //    e.Row.Items.FindItemByKey("SubAgencyCode").Tooltip = e.Row.Items.FindItemByKey("SubAgencyName").Text;
            //    e.Row.Items.FindItemByKey("Dosage").Column.Width = Unit.Percentage(8);
            //    e.Row.Items.FindItemByKey("DispenseDesc").Column.Width = Unit.Percentage(8);
            //    e.Row.Items.FindItemByKey("StatusDesc").Column.Width = Unit.Percentage(8);
            //}
            //else
            //{

            //    e.Row.Items.FindItemByKey("Dosage").Column.Width = Unit.Percentage(10);
            //    e.Row.Items.FindItemByKey("DispenseDesc").Column.Width = Unit.Percentage(10);
            //    e.Row.Items.FindItemByKey("StatusDesc").Column.Width = Unit.Percentage(10);
            //    e.Row.Items.FindItemByKey("SubAgencyCode").Column.Hidden = true;
            //}
        }