示例#1
0
 public dbool_v Clone()
 {
     dbool_v o_v = new dbool_v();
     o_v.v = this.v;
     o_v.defined = this.m_defined;
     return o_v;
 }
示例#2
0
            public void Init(usrc_DataEdit m_eds)
            {
                Image img = Properties.Resources.Logo;
                MyOrg_Image_Data_v.v = Func.imageToByteArray(img, img.RawFormat);

                MyOrg_DynGroupBox = m_eds.AddGroupBox("grp_MyOrg", lngRPM.s_MyOrganisation);

                MyOrg_BankAccount_DynGroupBox = MyOrg_DynGroupBox.AddGroupBox("grp_MyOrg_BankAccount", lngRPM.s_BankAccount);

                MyOrg_BankAccount_Bank_DynGroupBox = MyOrg_BankAccount_DynGroupBox.AddGroupBox("grp_MyOrg_BankAccount_Bank", lngRPM.s_Bank);

                MyOrg_Address_DynGroupBox = MyOrg_DynGroupBox.AddGroupBox("grp_MyOrg_Address", lngRPM.s_Address);

                MyOrg_Address_Country_DynGroupBox = MyOrg_Address_DynGroupBox.AddGroupBox("grp_MyOrg_Address_Country", lngRPM.s_Country);

                MyOrg_Office_DynGroupBox = MyOrg_DynGroupBox.AddGroupBox("grp_MyOrg_Office", lngRPM.s_Office);

                MyOrg_Office_Address_DynGroupBox = MyOrg_Office_DynGroupBox.AddGroupBox("grp_MyOrg_Office_Address", lngRPM.s_Address);

                MyOrg_Office_Address_Country_DynGroupBox = MyOrg_Office_Address_DynGroupBox.AddGroupBox("grp_MyOrg_Office_Address_Country", lngRPM.s_Country);

                MyOrg_Office_Person_DynGroupBox = MyOrg_Office_DynGroupBox.AddGroupBox("grp_MyOrg_Office_Person", lngRPM.s_Person);

                MyOrg_Office_Person_Address_DynGroupBox = MyOrg_Office_Person_DynGroupBox.AddGroupBox("grp_MyOrg_Office_Person_Address", lngRPM.s_Address);

                MyOrg_Office_Person_Address_Country_DynGroupBox = MyOrg_Office_Person_Address_DynGroupBox.AddGroupBox("grp_MyOrg_Office_Person_Address_Country", lngRPM.s_Country);

                MyOrg_DynGroupBox.Visible = true;
                MyOrg_Address_DynGroupBox.Visible = true;
                MyOrg_Office_DynGroupBox.Visible = true;
                MyOrg_Office_Address_DynGroupBox.Visible = true;
                MyOrg_Office_Person_DynGroupBox.Visible = true;
                MyOrg_Office_Person_Address_DynGroupBox.Visible = true;

                new DynEditControls.EditControl(MyOrg_DynGroupBox, MyOrg_Name_v, "MyOrg_Name", lngRPMS.sl_MyOrg_Name, lngRPMS.s_MyOrg_Name_v, lngRPMS.sh_MyOrg_Name);

                new DynEditControls.EditControl(MyOrg_DynGroupBox, MyOrg_Tax_ID_v, "MyOrg_Tax_ID", lngRPMS.sl_MyOrg_Tax_ID, lngRPMS.s_MyOrg_Tax_ID_v, lngRPMS.sh_MyOrg_Tax_ID);

                new DynEditControls.EditControl(MyOrg_DynGroupBox, MyOrg_Registration_ID_v, "MyOrg_Registration_ID", lngRPMS.sl_MyOrg_Registration_ID, lngRPMS.s_MyOrg_Registration_ID_v, lngRPMS.sh_MyOrg_Registration_ID);

                new DynEditControls.EditControl(MyOrg_DynGroupBox, MyOrg_OrganisationTYPE_v, "MyOrg_OrganisationTYPE", lngRPMS.sl_MyOrg_OrganisationTYPE, lngRPMS.s_MyOrg_OrganisationTYPE_v, lngRPMS.sh_MyOrg_OrganisationTYPE);

                new DynEditControls.EditControl(MyOrg_DynGroupBox, MyOrg_PhoneNumber_v, "MyOrg_PhoneNumber", lngRPMS.sl_MyOrg_PhoneNumber, lngRPMS.s_MyOrg_PhoneNumber_v, lngRPMS.sh_MyOrg_PhoneNumber);

                new DynEditControls.EditControl(MyOrg_DynGroupBox, MyOrg_FaxNumber_v, "MyOrg_FaxNumber", lngRPMS.sl_MyOrg_FaxNumber, lngRPMS.s_MyOrg_FaxNumber_v, lngRPMS.sh_MyOrg_FaxNumber);

                new DynEditControls.EditControl(MyOrg_DynGroupBox, MyOrg_Email_v, "MyOrg_Email", lngRPMS.sl_MyOrg_Email, lngRPMS.s_MyOrg_Email_v, lngRPMS.sh_MyOrg_Email);

                new DynEditControls.EditControl(MyOrg_DynGroupBox, MyOrg_HomePage_v, "MyOrg_HomePage", lngRPMS.sl_MyOrg_HomePage, lngRPMS.s_MyOrg_HomePage_v, lngRPMS.sh_MyOrg_HomePage);

                new DynEditControls.EditControl(MyOrg_BankAccount_DynGroupBox, MyOrg_BankAccount_TRR_v, "MyOrg_BankAccount_TRR", lngRPMS.sl_MyOrg_TRR, lngRPMS.s_MyOrg_TRR_v, lngRPMS.sh_MyOrg_TRR);

                new DynEditControls.EditControl(MyOrg_BankAccount_DynGroupBox, MyOrg_BankAccount_Description_v, "MyOrg_BankAccount_Description", lngRPMS.sl_MyOrg_TRR_Description, lngRPMS.s_MyOrg_TRR_Description_v, lngRPMS.sh_MyOrg_TRR_Description);

                new DynEditControls.EditControl(MyOrg_BankAccount_DynGroupBox, MyOrg_BankAccount_Active_v, "MyOrg_BankAccount_Active", lngRPMS.sl_MyOrg_TRR_Active, lngRPMS.s_MyOrg_TRR_Active_v, lngRPMS.sh_MyOrg_TRR_Active);

                new DynEditControls.EditControl(MyOrg_BankAccount_Bank_DynGroupBox, MyOrg_Bank_Name_v, "MyOrg_Bank_Name", lngRPMS.sl_MyOrg_Bank_Name, lngRPMS.s_MyOrg_Bank_Name_v, lngRPMS.sh_MyOrg_Bank_Name);

                new DynEditControls.EditControl(MyOrg_BankAccount_Bank_DynGroupBox, MyOrg_Bank_Tax_ID_v, "MyOrg_Bank_Tax_ID", lngRPMS.sl_MyOrg_Bank_Tax_ID, lngRPMS.s_MyOrg_Bank_Tax_ID_v, lngRPMS.sh_MyOrg_Bank_Tax_ID);

                new DynEditControls.EditControl(MyOrg_BankAccount_Bank_DynGroupBox, MyOrg_Bank_Registration_ID_v, "MyOrg_Bank_Registration_ID", lngRPMS.sl_MyOrg_Bank_Registration_ID, lngRPMS.s_MyOrg_Bank_Registration_ID_v, lngRPMS.sh_MyOrg_Bank_Registration_ID);

                new DynEditControls.EditControl(MyOrg_DynGroupBox, MyOrg_Image_Data_v, "MyOrg_Logo", lngRPMS.sl_MyOrg_Logo, lngRPMS.s_MyOrg_Logo_v, lngRPMS.sh_MyOrg_Logo);

                new DynEditControls.EditControl(MyOrg_Address_DynGroupBox, MyOrg_Address_v.StreetName_v, "MyOrg_Address_StreetName", lngRPMS.sl_MyOrg_Address_StreetName, lngRPMS.s_MyOrg_Address_StreetName_v, lngRPMS.sh_MyOrg_Address_StreetName);
                new DynEditControls.EditControl(MyOrg_Address_DynGroupBox, MyOrg_Address_v.HouseNumber_v, "MyOrg_Address_HouseNumber", lngRPMS.sl_MyOrg_Address_HouseNumber, lngRPMS.s_MyOrg_Address_HouseNumber_v, lngRPMS.sh_MyOrg_Address_HouseNumber);
                new DynEditControls.EditControl(MyOrg_Address_DynGroupBox, MyOrg_Address_v.ZIP_v, "MyOrg_Address_ZIP", lngRPMS.sl_MyOrg_Address_ZIP, lngRPMS.s_MyOrg_Address_ZIP_v, lngRPMS.sh_MyOrg_Address_ZIP);
                new DynEditControls.EditControl(MyOrg_Address_DynGroupBox, MyOrg_Address_v.City_v, "MyOrg_Address_ZIP", lngRPMS.sl_MyOrg_Address_City, lngRPMS.s_MyOrg_Address_City_v, lngRPMS.sh_MyOrg_Address_City);
                new DynEditControls.EditControl(MyOrg_Address_DynGroupBox, MyOrg_Address_v.State_v, "MyOrg_Address_State", lngRPMS.sl_MyOrg_Address_State, lngRPMS.s_MyOrg_Address_State_v, lngRPMS.sh_MyOrg_Address_State);
                new DynEditControls.EditControl(MyOrg_Address_Country_DynGroupBox, MyOrg_Address_v.Country_v, "MyOrg_Addres_Country", lngRPMS.sl_MyOrg_Address_Country, lngRPMS.s_MyOrg_Address_Country_v, lngRPMS.sh_MyOrg_Address_Country);
                new DynEditControls.EditControl(MyOrg_Address_Country_DynGroupBox, MyOrg_Address_v.Country_ISO_3166_a2_v, "MyOrg_Address_Country_ISO_3166_a2", lngRPMS.sl_MyOrg_Address_Country_ISO_3166_a2, lngRPMS.s_MyOrg_Address_Country_ISO_3166_a2_v, lngRPMS.sh_MyOrg_Address_Country_ISO_3166_a2);
                new DynEditControls.EditControl(MyOrg_Address_Country_DynGroupBox, MyOrg_Address_v.Country_ISO_3166_a3_v, "MyOrg_Address_Country_ISO_3166_a3", lngRPMS.sl_MyOrg_Address_Country_ISO_3166_a3, lngRPMS.s_MyOrg_Address_Country_ISO_3166_a3_v, lngRPMS.sh_MyOrg_Address_Country_ISO_3166_a3);
                new DynEditControls.EditControl(MyOrg_Address_Country_DynGroupBox, MyOrg_Address_v.Country_ISO_3166_num_v, "MyOrg_Address_Country_ISO_3166_num", lngRPMS.sl_MyOrg_Address_Country_ISO_3166_num, lngRPMS.s_MyOrg_Address_Country_ISO_3166_num_v, lngRPMS.sh_MyOrg_Address_Country_ISO_3166_num);

                new DynEditControls.EditControl(MyOrg_Office_DynGroupBox, MyOrg_Office_Name_v, "MyOrg_OfficeName", lngRPMS.sl_MyOrg_OfficeName, lngRPMS.s_MyOrg_OfficeName_v, lngRPMS.sh_MyOrg_OfficeName);
                new DynEditControls.EditControl(MyOrg_Office_DynGroupBox, MyOrg_Office_ShortName_v, "MyOrg_OfficeShortName", lngRPMS.sl_MyOrg_OfficeShortName, lngRPMS.s_MyOrg_OfficeShortName_v, lngRPMS.sh_MyOrg_OfficeShortName);

                new DynEditControls.EditControl(MyOrg_Office_Address_DynGroupBox, MyOrg_Office_Address_v.StreetName_v, "MyOrg_Office_Address_StreetName", lngRPMS.sl_MyOrg_Office_Address_StreetName, lngRPMS.s_MyOrg_Office_Address_StreetName_v, lngRPMS.sh_MyOrg_Office_Address_StreetName);
                new DynEditControls.EditControl(MyOrg_Office_Address_DynGroupBox, MyOrg_Office_Address_v.HouseNumber_v, "MyOrg_Office_Address_HouseNumber", lngRPMS.sl_MyOrg_Office_Address_HouseNumber, lngRPMS.s_MyOrg_Office_Address_HouseNumber_v, lngRPMS.sh_MyOrg_Office_Address_HouseNumber);
                new DynEditControls.EditControl(MyOrg_Office_Address_DynGroupBox, MyOrg_Office_Address_v.ZIP_v, "MyOrg_Office_Address_ZIP", lngRPMS.sl_MyOrg_Office_Address_ZIP, lngRPMS.s_MyOrg_Office_Address_ZIP_v, lngRPMS.sh_MyOrg_Office_Address_ZIP);
                new DynEditControls.EditControl(MyOrg_Office_Address_DynGroupBox, MyOrg_Office_Address_v.City_v, "MyOrg_Office_Address_ZIP", lngRPMS.sl_MyOrg_Office_Address_City, lngRPMS.s_MyOrg_Office_Address_City_v, lngRPMS.sh_MyOrg_Office_Address_City);
                new DynEditControls.EditControl(MyOrg_Office_Address_DynGroupBox, MyOrg_Office_Address_v.State_v, "MyOrg_Office_Address_State", lngRPMS.sl_MyOrg_Office_Address_State, lngRPMS.s_MyOrg_Office_Address_State_v, lngRPMS.sh_MyOrg_Office_Address_State);
                new DynEditControls.EditControl(MyOrg_Office_Address_Country_DynGroupBox, MyOrg_Office_Address_v.Country_v, "MyOrg_Addres_Country", lngRPMS.sl_MyOrg_Address_Country, lngRPMS.s_MyOrg_Office_Address_Country_v, lngRPMS.sh_MyOrg_Office_Address_Country);
                new DynEditControls.EditControl(MyOrg_Office_Address_Country_DynGroupBox, MyOrg_Office_Address_v.Country_ISO_3166_a2_v, "MyOrg_Office_Address_Country_ISO_3166_a2", lngRPMS.sl_MyOrg_Office_Address_Country_ISO_3166_a2, lngRPMS.s_MyOrg_Office_Address_Country_ISO_3166_a2_v, lngRPMS.sh_MyOrg_Office_Address_Country_ISO_3166_a2);
                new DynEditControls.EditControl(MyOrg_Office_Address_Country_DynGroupBox, MyOrg_Office_Address_v.Country_ISO_3166_a3_v, "MyOrg_Office_Address_Country_ISO_3166_a3", lngRPMS.sl_MyOrg_Office_Address_Country_ISO_3166_a3, lngRPMS.s_MyOrg_Office_Address_Country_ISO_3166_a3_v, lngRPMS.sh_MyOrg_Office_Address_Country_ISO_3166_a3);
                new DynEditControls.EditControl(MyOrg_Office_Address_Country_DynGroupBox, MyOrg_Office_Address_v.Country_ISO_3166_num_v, "MyOrg_Office_Address_Country_ISO_3166_num", lngRPMS.sl_MyOrg_Office_Address_Country_ISO_3166_num, lngRPMS.s_MyOrg_Office_Address_Country_ISO_3166_num_v, lngRPMS.sh_MyOrg_Office_Address_Country_ISO_3166_num);

                new DynEditControls.EditControl(MyOrg_Office_Person_DynGroupBox, MyOrg_Person_FirstName_v, "MyOrg_Person_FirstName", lngRPMS.sl_MyOrg_Person_FirstName, lngRPMS.s_MyOrg_Person_FirstName_v, lngRPMS.sh_MyOrg_Person_FirstName);

                new DynEditControls.EditControl(MyOrg_Office_Person_DynGroupBox, MyOrg_Person_LastName_v, "MyOrg_Person_LastName", lngRPMS.sl_MyOrg_Person_LastName, lngRPMS.s_MyOrg_Person_LastName_v, lngRPMS.sh_MyOrg_Person_LastName);

                if (LanguageControl.DynSettings.LanguageID == DynSettings.Slovensko_ID)
                {
                    MyOrg_Person_Gender_v.v = false;
                }
                else
                {
                    MyOrg_Person_Gender_v.v = true;
                }
                MyOrg_Person_Gender_v.defined = true;
                new DynEditControls.EditControl(MyOrg_Office_Person_DynGroupBox, MyOrg_Person_Gender_v, "MyOrg_Person_Gender", lngRPMS.sl_MyOrg_Person_Gender, lngRPMS.s_MyOrg_Person_Gender_v, lngRPMS.sh_MyOrg_Person_Gender);

                new DynEditControls.EditControl(MyOrg_Office_Person_DynGroupBox, MyOrg_Person_DateOfBirth_v, "MyOrg_Person_DateOfBirth", lngRPMS.sl_MyOrg_Person_DateOfBirth, lngRPMS.s_MyOrg_Person_DateOfBirth_v, lngRPMS.sh_MyOrg_Person_DateOfBirth);

                new DynEditControls.EditControl(MyOrg_Office_Person_DynGroupBox, MyOrg_Person_UserName_v, "MyOrg_Person_UserName", lngRPMS.sl_MyOrg_Person_UserName, lngRPMS.s_MyOrg_Person_UserName_v, lngRPMS.sh_MyOrg_Person_UserName);

                new DynEditControls.EditControl(MyOrg_Office_Person_DynGroupBox, MyOrg_Person_Password_v, "MyOrg_Person_Password", lngRPMS.sl_MyOrg_Person_Password, lngRPMS.s_MyOrg_Person_Password_v, lngRPMS.sh_MyOrg_Person_Password);

                new DynEditControls.EditControl(MyOrg_Office_Person_DynGroupBox, MyOrg_Person_Job_v, "MyOrg_Person_Job", lngRPMS.sl_MyOrg_Person_Job, lngRPMS.s_MyOrg_Person_Job_v, lngRPMS.sh_MyOrg_Person_Job);

                MyOrg_Person_Active_v = new dbool_v(true);

                new DynEditControls.EditControl(MyOrg_Office_Person_DynGroupBox, MyOrg_Person_Description_v, " MyOrg_Person_Description", lngRPMS.sl_MyOrg_Person_Description, lngRPMS.s_MyOrg_Person_Description_v, lngRPMS.sh_MyOrg_Person_Description);

                new DynEditControls.EditControl(MyOrg_Office_Person_DynGroupBox, MyOrg_Person_Tax_ID_v, "MyOrg_Person_Tax_ID", lngRPMS.sl_MyOrg_Person_Tax_ID, lngRPMS.s_MyOrg_Person_Tax_ID_v, lngRPMS.sh_MyOrg_Person_Tax_ID);

                new DynEditControls.EditControl(MyOrg_Office_Person_DynGroupBox, MyOrg_Person_Registration_ID_v, "MyOrg_Person_Registration_ID", lngRPMS.sl_MyOrg_Person_Registration_ID, lngRPMS.s_MyOrg_Person_Registration_ID_v, lngRPMS.sh_MyOrg_Person_Registration_ID);

                new DynEditControls.EditControl(MyOrg_Office_Person_DynGroupBox, MyOrg_Person_GsmNumber_v, "MyOrg_Person_GsmNumber", lngRPMS.sl_MyOrg_Person_GsmNumber, lngRPMS.s_MyOrg_Person_GsmNumber_v, lngRPMS.sh_MyOrg_Person_GsmNumber);

                new DynEditControls.EditControl(MyOrg_Office_Person_DynGroupBox, MyOrg_Person_PhoneNumber_v, "MyOrg_Person_PhoneNumber", lngRPMS.sl_MyOrg_Person_PhoneNumber, lngRPMS.s_MyOrg_Person_PhoneNumber_v, lngRPMS.sh_MyOrg_Person_PhoneNumber);

                new DynEditControls.EditControl(MyOrg_Office_Person_DynGroupBox, MyOrg_Person_Email_v, "MyOrg_Person_Email", lngRPMS.sl_MyOrg_Person_Email, lngRPMS.s_MyOrg_Person_Email_v, lngRPMS.sh_MyOrg_Person_Email);

                new DynEditControls.EditControl(MyOrg_Office_Person_Address_DynGroupBox, MyOrg_Office_Person_Address_v.StreetName_v, "MyOrg_Office_Person_Address_StreetName", lngRPMS.sl_MyOrg_Office_Person_Address_StreetName, lngRPMS.s_MyOrg_Office_Person_Address_StreetName_v, lngRPMS.sh_MyOrg_Office_Person_Address_StreetName);
                new DynEditControls.EditControl(MyOrg_Office_Person_Address_DynGroupBox, MyOrg_Office_Person_Address_v.HouseNumber_v, "MyOrg_Office_Person_Address_HouseNumber", lngRPMS.sl_MyOrg_Office_Person_Address_HouseNumber, lngRPMS.s_MyOrg_Office_Person_Address_HouseNumber_v, lngRPMS.sh_MyOrg_Office_Person_Address_HouseNumber);
                new DynEditControls.EditControl(MyOrg_Office_Person_Address_DynGroupBox, MyOrg_Office_Person_Address_v.ZIP_v, "MyOrg_Office_Person_Address_ZIP", lngRPMS.sl_MyOrg_Office_Person_Address_ZIP, lngRPMS.s_MyOrg_Office_Person_Address_ZIP_v, lngRPMS.sh_MyOrg_Office_Person_Address_ZIP);
                new DynEditControls.EditControl(MyOrg_Office_Person_Address_DynGroupBox, MyOrg_Office_Person_Address_v.City_v, "MyOrg_Office_Person_Address_ZIP", lngRPMS.sl_MyOrg_Office_Person_Address_City, lngRPMS.s_MyOrg_Office_Person_Address_City_v, lngRPMS.sh_MyOrg_Office_Person_Address_City);
                new DynEditControls.EditControl(MyOrg_Office_Person_Address_DynGroupBox, MyOrg_Office_Person_Address_v.State_v, "MyOrg_Office_Person_Address_State", lngRPMS.sl_MyOrg_Office_Person_Address_State, lngRPMS.s_MyOrg_Office_Person_Address_State_v, lngRPMS.sh_MyOrg_Office_Person_Address_State);
                new DynEditControls.EditControl(MyOrg_Office_Person_Address_Country_DynGroupBox, MyOrg_Office_Person_Address_v.Country_v, "MyOrg_Office_Person_Address_Country", lngRPMS.sl_MyOrg_Address_Country, lngRPMS.s_MyOrg_Office_Person_Address_Country_v, lngRPMS.sh_MyOrg_Office_Person_Address_Country);
                new DynEditControls.EditControl(MyOrg_Office_Person_Address_Country_DynGroupBox, MyOrg_Office_Person_Address_v.Country_ISO_3166_a2_v, "MyOrg_Office_Person_Address_Country_ISO_3166_a2", lngRPMS.sl_MyOrg_Office_Person_Address_Country_ISO_3166_a2, lngRPMS.s_MyOrg_Office_Person_Address_Country_ISO_3166_a2_v, lngRPMS.sh_MyOrg_Office_Person_Address_Country_ISO_3166_a2);
                new DynEditControls.EditControl(MyOrg_Office_Person_Address_Country_DynGroupBox, MyOrg_Office_Person_Address_v.Country_ISO_3166_a3_v, "MyOrg_Office_Person_Address_Country_ISO_3166_a3", lngRPMS.sl_MyOrg_Office_Person_Address_Country_ISO_3166_a3, lngRPMS.s_MyOrg_Office_Person_Address_Country_ISO_3166_a3_v, lngRPMS.sh_MyOrg_Office_Person_Address_Country_ISO_3166_a3);
                new DynEditControls.EditControl(MyOrg_Office_Person_Address_Country_DynGroupBox, MyOrg_Office_Person_Address_v.Country_ISO_3166_num_v, "MyOrg_Office_Person_Address_Country_ISO_3166_num", lngRPMS.sl_MyOrg_Office_Person_Address_Country_ISO_3166_num, lngRPMS.s_MyOrg_Office_Person_Address_Country_ISO_3166_num_v, lngRPMS.sh_MyOrg_Office_Person_Address_Country_ISO_3166_num);

                //MyOrg_Office_Name_v = new DBTypes.dstring_v(lngRPMS.s_MyOrg_OfficeName_v.s);
                //MyOrg_Office_ShortName_v = new DBTypes.dstring_v(lngRPMS.s_MyOrg_OfficeShortName_v.s);

                MyOrg_Address_Country_DynGroupBox.ReadOnly = true;
                MyOrg_Office_Address_Country_DynGroupBox.ReadOnly = true;
                MyOrg_Office_Person_Address_Country_DynGroupBox.ReadOnly = true;
            }
示例#3
0
 public static dbool_v Copy(dbool_v o_v)
 {
     if (o_v != null)
     {
         return o_v.Clone();
     }
     else
     {
         return null;
     }
 }