Example #1
0
        private void InitPrintButton(AttachmentPoint attachmentPoint, PrintButton button)
        {
            button.AttachmentPoint = attachmentPoint;
            Visibility visibility;
            switch (_oClientType)
            {
                case OClientTypes.Person:
                    visibility = Visibility.Individual;
                    break;

                case OClientTypes.Group:
                    visibility = Visibility.Group;
                    break;

                case OClientTypes.Corporate:
                    visibility = Visibility.Corporate;
                    break;

                default:
                    visibility = Visibility.All;
                    break;
            }
            button.Visibility = visibility;

            button.ReportInitializer =
                report =>
                {
                    report.SetParamValue("user_id", User.CurrentUser.Id);
                    if (_credit != null) report.SetParamValue("contract_id", _credit.Id);
                    if (_saving != null) report.SetParamValue("saving_id", _saving.Id);
                    if (_guarantee != null) report.SetParamValue("guarantee_id", _guarantee.Id);
                };
            button.LoadReports();
        }
 /// <summary> 
 /// M�thode requise pour la prise en charge du concepteur - ne modifiez pas 
 /// le contenu de cette m�thode avec l'�diteur de code.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(GroupUserControl));
     this.splitContainer3 = new System.Windows.Forms.SplitContainer();
     this.listViewOtherMembres = new System.Windows.Forms.ListView();
     this.columnHeaderName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeaderPassport = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeaderDateOfBirth = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeaderSex = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeaderHeadOfHousehold = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeaderLoanCycle = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeaderDependents = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader8 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.groupBox3 = new System.Windows.Forms.GroupBox();
     this.buttonDeleteMembers = new System.Windows.Forms.Button();
     this.buttonSaveAsLeader = new System.Windows.Forms.Button();
     this.buttonViewMember = new System.Windows.Forms.Button();
     this.buttonAddMembres = new System.Windows.Forms.Button();
     this.buttonSelectAMember = new System.Windows.Forms.Button();
     this.splitContainer1 = new System.Windows.Forms.SplitContainer();
     this.listViewProjects = new System.Windows.Forms.ListView();
     this.columnHeader11 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader12 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeaderCode = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeaderNbOfContracts = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.groupBoxProjects = new System.Windows.Forms.GroupBox();
     this.buttonViewProject = new System.Windows.Forms.Button();
     this.buttonAddProject = new System.Windows.Forms.Button();
     this.tabControlGroupInfo = new System.Windows.Forms.TabControl();
     this.tabPageBusinessAddress = new System.Windows.Forms.TabPage();
     this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
     this.groupBoxFirstAddress = new System.Windows.Forms.GroupBox();
     this.groupBoxSecondaryAddress = new System.Windows.Forms.GroupBox();
     this.tabPageMembers = new System.Windows.Forms.TabPage();
     this.tabPageHistory = new System.Windows.Forms.TabPage();
     this.listViewHistoryMembers = new System.Windows.Forms.ListView();
     this.columnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader3 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader5 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader6 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader9 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.columnHeader10 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
     this.tabPageProjects = new System.Windows.Forms.TabPage();
     this.tabPageSaving = new System.Windows.Forms.TabPage();
     this.savingsListUserControl1 = new OpenCBS.GUI.UserControl.SavingsListUserControl();
     this.tabPageCustomizableFields = new System.Windows.Forms.TabPage();
     this.imageListTab = new System.Windows.Forms.ImageList(this.components);
     this.cbBranch = new System.Windows.Forms.ComboBox();
     this.groupBoxButtonBottom = new System.Windows.Forms.GroupBox();
     this.buttonNext = new System.Windows.Forms.Button();
     this.buttonPreview = new System.Windows.Forms.Button();
     this.labelHelpRequiredFields = new System.Windows.Forms.Label();
     this.groupBoxButtons = new System.Windows.Forms.GroupBox();
     this.btnPrint = new OpenCBS.GUI.UserControl.PrintButton();
     this.buttonCancel = new System.Windows.Forms.Button();
     this.buttonSave = new System.Windows.Forms.Button();
     this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
     this.groupBoxCivilStatus = new System.Windows.Forms.GroupBox();
     this.tlpGroupControls = new System.Windows.Forms.TableLayoutPanel();
     this.label2 = new System.Windows.Forms.Label();
     this.textBoxGroupLoanCycle = new System.Windows.Forms.TextBox();
     this.labelGroupCycle = new System.Windows.Forms.Label();
     this.lblWeekDay = new System.Windows.Forms.Label();
     this.cmbWeekDay = new System.Windows.Forms.ComboBox();
     this.dateTimePickerDateOfEstablishment = new System.Windows.Forms.DateTimePicker();
     this.labelDateOfEstablishment = new System.Windows.Forms.Label();
     this.cbMeetingDay = new System.Windows.Forms.CheckBox();
     this.labelName = new System.Windows.Forms.Label();
     this.textBoxName = new System.Windows.Forms.TextBox();
     this.linkLabelChangePhoto2 = new System.Windows.Forms.LinkLabel();
     this.linkLabelChangePhoto = new System.Windows.Forms.LinkLabel();
     this.pictureBox2 = new System.Windows.Forms.PictureBox();
     this.pictureBox1 = new System.Windows.Forms.PictureBox();
     this.splitContainer3.Panel1.SuspendLayout();
     this.splitContainer3.Panel2.SuspendLayout();
     this.splitContainer3.SuspendLayout();
     this.groupBox3.SuspendLayout();
     this.splitContainer1.Panel1.SuspendLayout();
     this.splitContainer1.Panel2.SuspendLayout();
     this.splitContainer1.SuspendLayout();
     this.groupBoxProjects.SuspendLayout();
     this.tabControlGroupInfo.SuspendLayout();
     this.tabPageBusinessAddress.SuspendLayout();
     this.tableLayoutPanel1.SuspendLayout();
     this.tabPageMembers.SuspendLayout();
     this.tabPageHistory.SuspendLayout();
     this.tabPageProjects.SuspendLayout();
     this.tabPageSaving.SuspendLayout();
     this.groupBoxButtonBottom.SuspendLayout();
     this.groupBoxButtons.SuspendLayout();
     this.tableLayoutPanel4.SuspendLayout();
     this.groupBoxCivilStatus.SuspendLayout();
     this.tlpGroupControls.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // splitContainer3
     //
     resources.ApplyResources(this.splitContainer3, "splitContainer3");
     this.splitContainer3.FixedPanel = System.Windows.Forms.FixedPanel.Panel2;
     this.splitContainer3.Name = "splitContainer3";
     //
     // splitContainer3.Panel1
     //
     this.splitContainer3.Panel1.Controls.Add(this.listViewOtherMembres);
     //
     // splitContainer3.Panel2
     //
     this.splitContainer3.Panel2.Controls.Add(this.groupBox3);
     //
     // listViewOtherMembres
     //
     this.listViewOtherMembres.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.columnHeaderName,
     this.columnHeaderPassport,
     this.columnHeaderDateOfBirth,
     this.columnHeaderSex,
     this.columnHeaderHeadOfHousehold,
     this.columnHeaderLoanCycle,
     this.columnHeaderDependents,
     this.columnHeader7,
     this.columnHeader8});
     resources.ApplyResources(this.listViewOtherMembres, "listViewOtherMembres");
     this.listViewOtherMembres.FullRowSelect = true;
     this.listViewOtherMembres.GridLines = true;
     this.listViewOtherMembres.MultiSelect = false;
     this.listViewOtherMembres.Name = "listViewOtherMembres";
     this.listViewOtherMembres.UseCompatibleStateImageBehavior = false;
     this.listViewOtherMembres.View = System.Windows.Forms.View.Details;
     this.listViewOtherMembres.DoubleClick += new System.EventHandler(this.listViewOtherMembres_DoubleClick);
     //
     // columnHeaderName
     //
     resources.ApplyResources(this.columnHeaderName, "columnHeaderName");
     //
     // columnHeaderPassport
     //
     resources.ApplyResources(this.columnHeaderPassport, "columnHeaderPassport");
     //
     // columnHeaderDateOfBirth
     //
     resources.ApplyResources(this.columnHeaderDateOfBirth, "columnHeaderDateOfBirth");
     //
     // columnHeaderSex
     //
     resources.ApplyResources(this.columnHeaderSex, "columnHeaderSex");
     //
     // columnHeaderHeadOfHousehold
     //
     resources.ApplyResources(this.columnHeaderHeadOfHousehold, "columnHeaderHeadOfHousehold");
     //
     // columnHeaderLoanCycle
     //
     resources.ApplyResources(this.columnHeaderLoanCycle, "columnHeaderLoanCycle");
     //
     // columnHeaderDependents
     //
     resources.ApplyResources(this.columnHeaderDependents, "columnHeaderDependents");
     //
     // columnHeader7
     //
     resources.ApplyResources(this.columnHeader7, "columnHeader7");
     //
     // columnHeader8
     //
     resources.ApplyResources(this.columnHeader8, "columnHeader8");
     //
     // groupBox3
     //
     this.groupBox3.Controls.Add(this.buttonDeleteMembers);
     this.groupBox3.Controls.Add(this.buttonSaveAsLeader);
     this.groupBox3.Controls.Add(this.buttonViewMember);
     this.groupBox3.Controls.Add(this.buttonAddMembres);
     this.groupBox3.Controls.Add(this.buttonSelectAMember);
     resources.ApplyResources(this.groupBox3, "groupBox3");
     this.groupBox3.Name = "groupBox3";
     this.groupBox3.TabStop = false;
     //
     // buttonDeleteMembers
     //
     resources.ApplyResources(this.buttonDeleteMembers, "buttonDeleteMembers");
     this.buttonDeleteMembers.Name = "buttonDeleteMembers";
     this.buttonDeleteMembers.Click += new System.EventHandler(this.buttonDeleteMembers_Click);
     //
     // buttonSaveAsLeader
     //
     resources.ApplyResources(this.buttonSaveAsLeader, "buttonSaveAsLeader");
     this.buttonSaveAsLeader.Name = "buttonSaveAsLeader";
     this.buttonSaveAsLeader.Click += new System.EventHandler(this.buttonSaveAsLeader_Click);
     //
     // buttonViewMember
     //
     resources.ApplyResources(this.buttonViewMember, "buttonViewMember");
     this.buttonViewMember.Name = "buttonViewMember";
     this.buttonViewMember.Click += new System.EventHandler(this.buttonViewMember_Click);
     //
     // buttonAddMembres
     //
     resources.ApplyResources(this.buttonAddMembres, "buttonAddMembres");
     this.buttonAddMembres.Name = "buttonAddMembres";
     this.buttonAddMembres.Click += new System.EventHandler(this.buttonAddMembres_Click);
     //
     // buttonSelectAMember
     //
     resources.ApplyResources(this.buttonSelectAMember, "buttonSelectAMember");
     this.buttonSelectAMember.Name = "buttonSelectAMember";
     this.buttonSelectAMember.Click += new System.EventHandler(this.buttonSelectAMember_Click);
     //
     // splitContainer1
     //
     resources.ApplyResources(this.splitContainer1, "splitContainer1");
     this.splitContainer1.Name = "splitContainer1";
     //
     // splitContainer1.Panel1
     //
     this.splitContainer1.Panel1.Controls.Add(this.listViewProjects);
     //
     // splitContainer1.Panel2
     //
     this.splitContainer1.Panel2.Controls.Add(this.groupBoxProjects);
     //
     // listViewProjects
     //
     this.listViewProjects.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.columnHeader11,
     this.columnHeader12,
     this.columnHeaderCode,
     this.columnHeaderNbOfContracts});
     resources.ApplyResources(this.listViewProjects, "listViewProjects");
     this.listViewProjects.FullRowSelect = true;
     this.listViewProjects.GridLines = true;
     this.listViewProjects.Name = "listViewProjects";
     this.listViewProjects.UseCompatibleStateImageBehavior = false;
     this.listViewProjects.View = System.Windows.Forms.View.Details;
     this.listViewProjects.DoubleClick += new System.EventHandler(this.listViewProjects_DoubleClick);
     //
     // columnHeader11
     //
     resources.ApplyResources(this.columnHeader11, "columnHeader11");
     //
     // columnHeader12
     //
     resources.ApplyResources(this.columnHeader12, "columnHeader12");
     //
     // columnHeaderCode
     //
     resources.ApplyResources(this.columnHeaderCode, "columnHeaderCode");
     //
     // columnHeaderNbOfContracts
     //
     resources.ApplyResources(this.columnHeaderNbOfContracts, "columnHeaderNbOfContracts");
     //
     // groupBoxProjects
     //
     this.groupBoxProjects.Controls.Add(this.buttonViewProject);
     this.groupBoxProjects.Controls.Add(this.buttonAddProject);
     resources.ApplyResources(this.groupBoxProjects, "groupBoxProjects");
     this.groupBoxProjects.Name = "groupBoxProjects";
     this.groupBoxProjects.TabStop = false;
     //
     // buttonViewProject
     //
     resources.ApplyResources(this.buttonViewProject, "buttonViewProject");
     this.buttonViewProject.Name = "buttonViewProject";
     this.buttonViewProject.Click += new System.EventHandler(this.buttonViewProject_Click);
     //
     // buttonAddProject
     //
     resources.ApplyResources(this.buttonAddProject, "buttonAddProject");
     this.buttonAddProject.Name = "buttonAddProject";
     this.buttonAddProject.Click += new System.EventHandler(this.buttonAddProject_Click);
     //
     // tabControlGroupInfo
     //
     this.tabControlGroupInfo.Controls.Add(this.tabPageBusinessAddress);
     this.tabControlGroupInfo.Controls.Add(this.tabPageMembers);
     this.tabControlGroupInfo.Controls.Add(this.tabPageHistory);
     this.tabControlGroupInfo.Controls.Add(this.tabPageProjects);
     this.tabControlGroupInfo.Controls.Add(this.tabPageSaving);
     this.tabControlGroupInfo.Controls.Add(this.tabPageCustomizableFields);
     resources.ApplyResources(this.tabControlGroupInfo, "tabControlGroupInfo");
     this.tabControlGroupInfo.ImageList = this.imageListTab;
     this.tabControlGroupInfo.Name = "tabControlGroupInfo";
     this.tabControlGroupInfo.SelectedIndex = 0;
     this.tabControlGroupInfo.SelectedIndexChanged += new System.EventHandler(this.tabControlGroupInfo_SelectedIndexChanged);
     //
     // tabPageBusinessAddress
     //
     this.tabPageBusinessAddress.Controls.Add(this.tableLayoutPanel1);
     resources.ApplyResources(this.tabPageBusinessAddress, "tabPageBusinessAddress");
     this.tabPageBusinessAddress.Name = "tabPageBusinessAddress";
     //
     // tableLayoutPanel1
     //
     resources.ApplyResources(this.tableLayoutPanel1, "tableLayoutPanel1");
     this.tableLayoutPanel1.Controls.Add(this.groupBoxFirstAddress, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.groupBoxSecondaryAddress, 1, 0);
     this.tableLayoutPanel1.Name = "tableLayoutPanel1";
     //
     // groupBoxFirstAddress
     //
     resources.ApplyResources(this.groupBoxFirstAddress, "groupBoxFirstAddress");
     this.groupBoxFirstAddress.Name = "groupBoxFirstAddress";
     this.groupBoxFirstAddress.TabStop = false;
     //
     // groupBoxSecondaryAddress
     //
     resources.ApplyResources(this.groupBoxSecondaryAddress, "groupBoxSecondaryAddress");
     this.groupBoxSecondaryAddress.Name = "groupBoxSecondaryAddress";
     this.groupBoxSecondaryAddress.TabStop = false;
     //
     // tabPageMembers
     //
     this.tabPageMembers.Controls.Add(this.splitContainer3);
     resources.ApplyResources(this.tabPageMembers, "tabPageMembers");
     this.tabPageMembers.Name = "tabPageMembers";
     //
     // tabPageHistory
     //
     this.tabPageHistory.Controls.Add(this.listViewHistoryMembers);
     resources.ApplyResources(this.tabPageHistory, "tabPageHistory");
     this.tabPageHistory.Name = "tabPageHistory";
     //
     // listViewHistoryMembers
     //
     this.listViewHistoryMembers.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     this.columnHeader1,
     this.columnHeader2,
     this.columnHeader3,
     this.columnHeader4,
     this.columnHeader5,
     this.columnHeader6,
     this.columnHeader9,
     this.columnHeader10});
     resources.ApplyResources(this.listViewHistoryMembers, "listViewHistoryMembers");
     this.listViewHistoryMembers.FullRowSelect = true;
     this.listViewHistoryMembers.GridLines = true;
     this.listViewHistoryMembers.MultiSelect = false;
     this.listViewHistoryMembers.Name = "listViewHistoryMembers";
     this.listViewHistoryMembers.UseCompatibleStateImageBehavior = false;
     this.listViewHistoryMembers.View = System.Windows.Forms.View.Details;
     this.listViewHistoryMembers.DoubleClick += new System.EventHandler(this.listViewHistoryMembers_DoubleClick);
     //
     // columnHeader1
     //
     resources.ApplyResources(this.columnHeader1, "columnHeader1");
     //
     // columnHeader2
     //
     resources.ApplyResources(this.columnHeader2, "columnHeader2");
     //
     // columnHeader3
     //
     resources.ApplyResources(this.columnHeader3, "columnHeader3");
     //
     // columnHeader4
     //
     resources.ApplyResources(this.columnHeader4, "columnHeader4");
     //
     // columnHeader5
     //
     resources.ApplyResources(this.columnHeader5, "columnHeader5");
     //
     // columnHeader6
     //
     resources.ApplyResources(this.columnHeader6, "columnHeader6");
     //
     // columnHeader9
     //
     resources.ApplyResources(this.columnHeader9, "columnHeader9");
     //
     // columnHeader10
     //
     resources.ApplyResources(this.columnHeader10, "columnHeader10");
     //
     // tabPageProjects
     //
     this.tabPageProjects.Controls.Add(this.splitContainer1);
     resources.ApplyResources(this.tabPageProjects, "tabPageProjects");
     this.tabPageProjects.Name = "tabPageProjects";
     //
     // tabPageSaving
     //
     this.tabPageSaving.Controls.Add(this.savingsListUserControl1);
     resources.ApplyResources(this.tabPageSaving, "tabPageSaving");
     this.tabPageSaving.Name = "tabPageSaving";
     //
     // savingsListUserControl1
     //
     this.savingsListUserControl1.ButtonAddSavingsEnabled = true;
     this.savingsListUserControl1.ClientType = OpenCBS.Enums.OClientTypes.Group;
     resources.ApplyResources(this.savingsListUserControl1, "savingsListUserControl1");
     this.savingsListUserControl1.Name = "savingsListUserControl1";
     this.savingsListUserControl1.AddSelectedSaving += new System.EventHandler(this.savingsListUserControl1_AddSelectedSaving);
     this.savingsListUserControl1.ViewSelectedSaving += new System.EventHandler(this.savingsListUserControl1_ViewSelectedSaving);
     this.savingsListUserControl1.Load += new System.EventHandler(this.savingsListUserControl1_Load);
     //
     // tabPageCustomizableFields
     //
     resources.ApplyResources(this.tabPageCustomizableFields, "tabPageCustomizableFields");
     this.tabPageCustomizableFields.Name = "tabPageCustomizableFields";
     //
     // imageListTab
     //
     this.imageListTab.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListTab.ImageStream")));
     this.imageListTab.TransparentColor = System.Drawing.Color.Transparent;
     this.imageListTab.Images.SetKeyName(0, "");
     this.imageListTab.Images.SetKeyName(1, "");
     this.imageListTab.Images.SetKeyName(2, "");
     this.imageListTab.Images.SetKeyName(3, "");
     this.imageListTab.Images.SetKeyName(4, "");
     //
     // cbBranch
     //
     resources.ApplyResources(this.cbBranch, "cbBranch");
     this.cbBranch.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cbBranch.FormattingEnabled = true;
     this.cbBranch.Name = "cbBranch";
     //
     // groupBoxButtonBottom
     //
     this.groupBoxButtonBottom.Controls.Add(this.buttonNext);
     this.groupBoxButtonBottom.Controls.Add(this.buttonPreview);
     resources.ApplyResources(this.groupBoxButtonBottom, "groupBoxButtonBottom");
     this.groupBoxButtonBottom.Name = "groupBoxButtonBottom";
     this.groupBoxButtonBottom.TabStop = false;
     //
     // buttonNext
     //
     resources.ApplyResources(this.buttonNext, "buttonNext");
     this.buttonNext.Name = "buttonNext";
     this.buttonNext.Click += new System.EventHandler(this.buttonNext_Click);
     //
     // buttonPreview
     //
     resources.ApplyResources(this.buttonPreview, "buttonPreview");
     this.buttonPreview.Name = "buttonPreview";
     this.buttonPreview.Click += new System.EventHandler(this.buttonPreview_Click);
     //
     // labelHelpRequiredFields
     //
     resources.ApplyResources(this.labelHelpRequiredFields, "labelHelpRequiredFields");
     this.labelHelpRequiredFields.Name = "labelHelpRequiredFields";
     //
     // groupBoxButtons
     //
     this.groupBoxButtons.Controls.Add(this.btnPrint);
     this.groupBoxButtons.Controls.Add(this.buttonCancel);
     this.groupBoxButtons.Controls.Add(this.buttonSave);
     resources.ApplyResources(this.groupBoxButtons, "groupBoxButtons");
     this.groupBoxButtons.Name = "groupBoxButtons";
     this.groupBoxButtons.TabStop = false;
     //
     // btnPrint
     //
     resources.ApplyResources(this.btnPrint, "btnPrint");
     this.btnPrint.AttachmentPoint = OpenCBS.Reports.AttachmentPoint.GroupDetails;
     this.btnPrint.Name = "btnPrint";
     this.btnPrint.ReportInitializer = null;
     this.btnPrint.UseVisualStyleBackColor = true;
     this.btnPrint.Visibility = OpenCBS.Reports.Visibility.Group;
     //
     // buttonCancel
     //
     resources.ApplyResources(this.buttonCancel, "buttonCancel");
     this.buttonCancel.Name = "buttonCancel";
     this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
     //
     // buttonSave
     //
     resources.ApplyResources(this.buttonSave, "buttonSave");
     this.buttonSave.Name = "buttonSave";
     this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click);
     //
     // tableLayoutPanel4
     //
     resources.ApplyResources(this.tableLayoutPanel4, "tableLayoutPanel4");
     this.tableLayoutPanel4.Controls.Add(this.groupBoxButtonBottom, 0, 3);
     this.tableLayoutPanel4.Controls.Add(this.tabControlGroupInfo, 0, 2);
     this.tableLayoutPanel4.Controls.Add(this.groupBoxCivilStatus, 0, 0);
     this.tableLayoutPanel4.Controls.Add(this.groupBoxButtons, 0, 1);
     this.tableLayoutPanel4.Name = "tableLayoutPanel4";
     //
     // groupBoxCivilStatus
     //
     this.groupBoxCivilStatus.Controls.Add(this.tlpGroupControls);
     this.groupBoxCivilStatus.Controls.Add(this.linkLabelChangePhoto2);
     this.groupBoxCivilStatus.Controls.Add(this.linkLabelChangePhoto);
     this.groupBoxCivilStatus.Controls.Add(this.pictureBox2);
     this.groupBoxCivilStatus.Controls.Add(this.pictureBox1);
     resources.ApplyResources(this.groupBoxCivilStatus, "groupBoxCivilStatus");
     this.groupBoxCivilStatus.Name = "groupBoxCivilStatus";
     this.groupBoxCivilStatus.TabStop = false;
     //
     // tlpGroupControls
     //
     this.tlpGroupControls.BackColor = System.Drawing.Color.Transparent;
     resources.ApplyResources(this.tlpGroupControls, "tlpGroupControls");
     this.tlpGroupControls.Controls.Add(this.cbBranch, 1, 4);
     this.tlpGroupControls.Controls.Add(this.label2, 0, 4);
     this.tlpGroupControls.Controls.Add(this.textBoxGroupLoanCycle, 1, 3);
     this.tlpGroupControls.Controls.Add(this.labelGroupCycle, 0, 3);
     this.tlpGroupControls.Controls.Add(this.lblWeekDay, 0, 1);
     this.tlpGroupControls.Controls.Add(this.cmbWeekDay, 1, 1);
     this.tlpGroupControls.Controls.Add(this.dateTimePickerDateOfEstablishment, 1, 2);
     this.tlpGroupControls.Controls.Add(this.labelDateOfEstablishment, 0, 2);
     this.tlpGroupControls.Controls.Add(this.cbMeetingDay, 2, 1);
     this.tlpGroupControls.Controls.Add(this.labelName, 0, 0);
     this.tlpGroupControls.Controls.Add(this.textBoxName, 1, 0);
     this.tlpGroupControls.Name = "tlpGroupControls";
     //
     // label2
     //
     resources.ApplyResources(this.label2, "label2");
     this.label2.BackColor = System.Drawing.Color.Transparent;
     this.label2.Name = "label2";
     //
     // textBoxGroupLoanCycle
     //
     resources.ApplyResources(this.textBoxGroupLoanCycle, "textBoxGroupLoanCycle");
     this.textBoxGroupLoanCycle.Name = "textBoxGroupLoanCycle";
     this.textBoxGroupLoanCycle.TextChanged += new System.EventHandler(this.textBoxGroupLoanCycle_TextChanged);
     //
     // labelGroupCycle
     //
     resources.ApplyResources(this.labelGroupCycle, "labelGroupCycle");
     this.labelGroupCycle.BackColor = System.Drawing.Color.Transparent;
     this.labelGroupCycle.Name = "labelGroupCycle";
     //
     // lblWeekDay
     //
     resources.ApplyResources(this.lblWeekDay, "lblWeekDay");
     this.lblWeekDay.Name = "lblWeekDay";
     //
     // cmbWeekDay
     //
     resources.ApplyResources(this.cmbWeekDay, "cmbWeekDay");
     this.cmbWeekDay.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.cmbWeekDay.FormattingEnabled = true;
     this.cmbWeekDay.Items.AddRange(new object[] {
     resources.GetString("cmbWeekDay.Items"),
     resources.GetString("cmbWeekDay.Items1"),
     resources.GetString("cmbWeekDay.Items2"),
     resources.GetString("cmbWeekDay.Items3"),
     resources.GetString("cmbWeekDay.Items4"),
     resources.GetString("cmbWeekDay.Items5"),
     resources.GetString("cmbWeekDay.Items6")});
     this.cmbWeekDay.Name = "cmbWeekDay";
     //
     // dateTimePickerDateOfEstablishment
     //
     resources.ApplyResources(this.dateTimePickerDateOfEstablishment, "dateTimePickerDateOfEstablishment");
     this.dateTimePickerDateOfEstablishment.Format = System.Windows.Forms.DateTimePickerFormat.Short;
     this.dateTimePickerDateOfEstablishment.Name = "dateTimePickerDateOfEstablishment";
     this.dateTimePickerDateOfEstablishment.Value = new System.DateTime(2006, 5, 19, 0, 0, 0, 0);
     this.dateTimePickerDateOfEstablishment.ValueChanged += new System.EventHandler(this.dateTimePickerDateOfEstablishment_ValueChanged);
     //
     // labelDateOfEstablishment
     //
     resources.ApplyResources(this.labelDateOfEstablishment, "labelDateOfEstablishment");
     this.labelDateOfEstablishment.BackColor = System.Drawing.Color.Transparent;
     this.labelDateOfEstablishment.Name = "labelDateOfEstablishment";
     //
     // cbMeetingDay
     //
     resources.ApplyResources(this.cbMeetingDay, "cbMeetingDay");
     this.cbMeetingDay.Name = "cbMeetingDay";
     this.cbMeetingDay.CheckedChanged += new System.EventHandler(this.cbMeetingDay_CheckedChanged);
     //
     // labelName
     //
     resources.ApplyResources(this.labelName, "labelName");
     this.labelName.BackColor = System.Drawing.Color.Transparent;
     this.labelName.Name = "labelName";
     //
     // textBoxName
     //
     this.textBoxName.BackColor = System.Drawing.SystemColors.Window;
     this.tlpGroupControls.SetColumnSpan(this.textBoxName, 2);
     resources.ApplyResources(this.textBoxName, "textBoxName");
     this.textBoxName.Name = "textBoxName";
     this.textBoxName.TextChanged += new System.EventHandler(this.textBoxName_TextChanged);
     //
     // linkLabelChangePhoto2
     //
     resources.ApplyResources(this.linkLabelChangePhoto2, "linkLabelChangePhoto2");
     this.linkLabelChangePhoto2.Name = "linkLabelChangePhoto2";
     this.linkLabelChangePhoto2.TabStop = true;
     this.linkLabelChangePhoto2.Click += new System.EventHandler(this.pictureBox1_Click);
     //
     // linkLabelChangePhoto
     //
     resources.ApplyResources(this.linkLabelChangePhoto, "linkLabelChangePhoto");
     this.linkLabelChangePhoto.Name = "linkLabelChangePhoto";
     this.linkLabelChangePhoto.TabStop = true;
     this.linkLabelChangePhoto.Click += new System.EventHandler(this.pictureBox1_Click);
     //
     // pictureBox2
     //
     resources.ApplyResources(this.pictureBox2, "pictureBox2");
     this.pictureBox2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.pictureBox2.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBox2.Name = "pictureBox2";
     this.pictureBox2.TabStop = false;
     this.pictureBox2.Click += new System.EventHandler(this.pictureBox1_Click);
     //
     // pictureBox1
     //
     resources.ApplyResources(this.pictureBox1, "pictureBox1");
     this.pictureBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224)))));
     this.pictureBox1.Cursor = System.Windows.Forms.Cursors.Hand;
     this.pictureBox1.Name = "pictureBox1";
     this.pictureBox1.TabStop = false;
     this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
     //
     // GroupUserControl
     //
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     resources.ApplyResources(this, "$this");
     this.Controls.Add(this.tableLayoutPanel4);
     this.Name = "GroupUserControl";
     this.Load += new System.EventHandler(this.GroupUserControl_Load);
     this.splitContainer3.Panel1.ResumeLayout(false);
     this.splitContainer3.Panel2.ResumeLayout(false);
     this.splitContainer3.ResumeLayout(false);
     this.groupBox3.ResumeLayout(false);
     this.splitContainer1.Panel1.ResumeLayout(false);
     this.splitContainer1.Panel2.ResumeLayout(false);
     this.splitContainer1.ResumeLayout(false);
     this.groupBoxProjects.ResumeLayout(false);
     this.tabControlGroupInfo.ResumeLayout(false);
     this.tabPageBusinessAddress.ResumeLayout(false);
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tabPageMembers.ResumeLayout(false);
     this.tabPageHistory.ResumeLayout(false);
     this.tabPageProjects.ResumeLayout(false);
     this.tabPageSaving.ResumeLayout(false);
     this.groupBoxButtonBottom.ResumeLayout(false);
     this.groupBoxButtons.ResumeLayout(false);
     this.tableLayoutPanel4.ResumeLayout(false);
     this.groupBoxCivilStatus.ResumeLayout(false);
     this.groupBoxCivilStatus.PerformLayout();
     this.tlpGroupControls.ResumeLayout(false);
     this.tlpGroupControls.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
 }
Example #3
0
        private void InitPrintButton(AttachmentPoint attachmentPoint, PrintButton button)
        {
            button.AttachmentPoint = attachmentPoint;
            Visibility visibility;
            switch (_oClientType)
            {
                case OClientTypes.Person:
                    visibility = Visibility.Individual;
                    break;

                case OClientTypes.Group:
                    visibility = Visibility.Group;
                    break;

                case OClientTypes.Corporate:
                    visibility = Visibility.Corporate;
                    break;

                default:
                    visibility = Visibility.All;
                    break;
            }
            button.Visibility = visibility;

            button.ReportInitializer =
                report =>
                {
                    report.SetParamValue("user_id", User.CurrentUser.Id);
                    if (_credit != null) report.SetParamValue("contract_id", _credit.Id);
                    if (_saving != null) report.SetParamValue("saving_id", _saving.Id);
                    if (_guarantee != null) report.SetParamValue("guarantee_id", _guarantee.Id);
                };
            button.LoadReports();

            //from extension
            foreach (var item in PrintButtonContextMenuStrips)
            {
                var menuItems = item.GetContextMenuStrip(_client, _credit, _guarantee, _saving, attachmentPoint.ToString());
                if (menuItems == null) continue;

                foreach (var menuItem in menuItems)
                {
                    button.Menu.Items.Add(menuItem);
                }
            }
        }