Beispiel #1
0
        private void gridMaster_DoubleClick(object sender, EventArgs e)
        {
            DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hi =
                gridMasterView.CalcHitInfo((sender as System.Windows.Forms.Control).PointToClient(System.Windows.Forms.Control.MousePosition));
            DataRow FocusRow;

            if (hi.RowHandle >= 0)
            {
                int nCategory = 99;
                FocusRow = gridMasterView.GetDataRow(hi.RowHandle);
                if (FocusRow.ItemArray[0].ToString() == "Fitness Package")
                {
                    nCategory = 1;
                }
                else if (FocusRow.ItemArray[0].ToString() == "Spa Package")
                {
                    nCategory = 2;
                }
                else if (FocusRow.ItemArray[0].ToString() == "Fitness Product")
                {
                    nCategory = 3;
                }
                else if (FocusRow.ItemArray[0].ToString() == "Spa Product")
                {
                    nCategory = 4;
                }
                else if (FocusRow.ItemArray[0].ToString() == "PT Package")
                {
                    nCategory = 5;
                }
                ACMS.ACMSManager.Human_Resource.Reports.RPAllIncomeDetail frm = new ACMS.ACMSManager.Human_Resource.Reports.RPAllIncomeDetail(FocusRow.ItemArray[0].ToString(), nCategory, dtDateDay.SelectionStart, oUser.NEmployeeID());
                frm.Show();
                //ACMS.ACMSStaff.WorkFlow.MyCustomEditForm frm = new ACMS.ACMSStaff.WorkFlow.MyCustomEditForm((int)FocusRow.ItemArray[0], nDepartment);
                //frm.Show();
            }
        }
Beispiel #2
0
 private void gridMaster_DoubleClick(object sender, EventArgs e)
 {
     DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo hi =
     gridMasterView.CalcHitInfo((sender as System.Windows.Forms.Control).PointToClient(System.Windows.Forms.Control.MousePosition));
     DataRow FocusRow;
     if (hi.RowHandle >= 0)
     {
         int nCategory = 99;
         FocusRow = gridMasterView.GetDataRow(hi.RowHandle);
         if (FocusRow.ItemArray[0].ToString() == "Fitness Package")
             nCategory = 1;
         else if (FocusRow.ItemArray[0].ToString() == "Spa Package")
             nCategory = 2;
         else if (FocusRow.ItemArray[0].ToString() == "Fitness Product")
             nCategory = 3;
         else if (FocusRow.ItemArray[0].ToString() == "Spa Product")
             nCategory = 4;
         else if (FocusRow.ItemArray[0].ToString() == "PT Package")
             nCategory = 5;
         ACMS.ACMSManager.Human_Resource.Reports.RPAllIncomeDetail frm = new ACMS.ACMSManager.Human_Resource.Reports.RPAllIncomeDetail(FocusRow.ItemArray[0].ToString(), nCategory, dtDateDay.SelectionStart, oUser.NEmployeeID());
         frm.Show();
         //ACMS.ACMSStaff.WorkFlow.MyCustomEditForm frm = new ACMS.ACMSStaff.WorkFlow.MyCustomEditForm((int)FocusRow.ItemArray[0], nDepartment);
         //frm.Show();
     }
 }