示例#1
0
 private void frm_PersonTempAddingGp2_Load(object sender, EventArgs e)
 {
     ItemsPublic.SetAllLocations();
     uC_PersonDetailsMini21.comboBirthCity.SetAllLocations();
     uC_PersonDetailsMini21.comboNationality.SetAllLocations();
     uC_PersonDetailsMini21.comboRegisterCity.SetAllLocations();
     uC_PersonDetailsMini21.rtbName.Focus();
 }
        private void frm_person_Load(object sender, EventArgs e)
        {
            try
            {
                ItemsPublic.BigErr += "1";
                ItemsPublic.SetAllLocations();
                ItemsPublic.BigErr += "2";
                if (ItemsPublic.MyRights.Contains(ServerClasses.AllFunctions._Rights.View_persons))
                {
                    createCbbBlockSecure();
                }
                else
                {
                    uC_personDetails31.LimitAccess();
                }
                ItemsPublic.BigErr += "3";
                GroupingControls((Control)this);
                ItemsPublic.BigErr += "4";
                GroupingRadObjects(findRadItems());
                ItemsPublic.BigErr += "5";
                if (ItemsPublic.MyRights.Contains(ServerClasses.AllFunctions._Rights.View_persons))
                {
                    GroupingRadObjects(new RadItemCollection {
                        cbbBlockPerson, cbbSecureForm
                    });

                    //   loadAllData();

                    // cbbView_Click(sender, e);
                    cbbSearch_Click(null, null);
                }
                else
                {
                    cbbSearch_Click(null, null);
                }
                ItemsPublic.BigErr += "6";
                uC_personDetails31.comboBirthCity.SetAllLocations();
                ItemsPublic.BigErr += "7";
                uC_personDetails31.comboNationality.SetAllLocations();
                ItemsPublic.BigErr += "8";
                uC_personDetails31.comboRegisterCity.SetAllLocations();
                ItemsPublic.BigErr += "9";
            }catch (Exception ex) {
                MessageBox.Show("ex.InnerException:= " + ex.InnerException + "\r\n\r\n" + "ex.Message:= " + ex.Message + "\r\n\r\n" + "ex.Source:= " + ex.Source + "\r\n\r\n" + "ex.StackTrace:= " + ex.StackTrace + "\r\n\r\n" + "ex.ToString():= " + ex.ToString() + "\r\n\r\n" + " ItemsPublic.BigErr:= " + ItemsPublic.BigErr);
            }
            //foreach ( object cntrl in myAll )
            //{
            //    if ( cntrl is RadDropDownList )
            //    {
            //        MessageBox.Show ("=>   "+ (( RadDropDownList ) cntrl).Name );
            //    }
            //}
        }