예제 #1
0
        private void displaySpecificForm()
        {
            switch (originModuleID)
            {
                case globalConstants.TAMBAH_HAPUS_GROUP_USER:
                    gutil.saveSystemDebugLog(0, "CREATE DATA GROUP DETAIL FORM, GROUP USER ID ["+selectedGroupID+"]");

                    if (null == editGroupForm || editGroupForm.IsDisposed)
                            editGroupForm = new dataGroupDetailForm(globalConstants.EDIT_GROUP_USER, selectedGroupID);

                    editGroupForm.Show();
                    editGroupForm.WindowState = FormWindowState.Normal;
                    break;
                
                case globalConstants.PENGATURAN_GRUP_AKSES:
                    gutil.saveSystemDebugLog(0, "CREATE DATA GROUP ACCESS MODULE FORM, GROUP USER ID [" + selectedGroupID + "]");

                    if (null == displayGroupAccessForm || displayGroupAccessForm.IsDisposed)
                            displayGroupAccessForm = new groupAccessModuleForm(selectedGroupID);

                    displayGroupAccessForm.Show();
                    displayGroupAccessForm.WindowState = FormWindowState.Normal;
                    break;

                //case globalConstants.PENGATURAN_POTONGAN_HARGA:
                //    pengaturanPotonganHargaForm pengaturanHargaForm = new pengaturanPotonganHargaForm();
                //    pengaturanHargaForm.ShowDialog(this);
                //    break;

                case globalConstants.TAMBAH_HAPUS_USER:
                    gutil.saveSystemDebugLog(0, "SET USER DETAIL SELECTED GROUP ID ["+selectedGroupID+"]");

                    userDetailForm.setSelectedGroupID(selectedGroupID);
                    this.Close();
                    break;
            }
        }
예제 #2
0
 public dataGroupDetailForm(int moduleID, groupAccessModuleForm originForm)
 {
     InitializeComponent();
     originModuleID = moduleID;
     parentForm = originForm;
 }