示例#1
0
 internal virtual void OnDocumentSaved(Controls.DocControl cont, DocumentSavedEventArgs doc)
 {
     if (DocumentSaved != null)
     {
         DocumentSaved.DynamicInvoke(new object[] { cont, doc });
     }
 }
示例#2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         docControl = null;
         if (Container != null)
         {
             Container.Remove(this);
         }
     }
 }
 internal override void OnDocumentSaved(DocumentSavedEventArgs doc)
 {
     Controls.DocControl doccont = null;
     if (docControl != null)
     {
         doccont             = docControl;
         docControl.FileName = "";
     }
     Slave.DeleteFile(filename);
     base.OnDocumentSaved(doccont, doc);
 }
示例#4
0
 /// <summary>
 ///   Нулевой компонет контрола документа
 /// </summary>
 public DocControlComponent(IContainer container, Controls.DocControl docControl)
     : this(container)
 {
     this.docControl = docControl;
 }
示例#5
0
        /// <summary>
        ///   Required method for Designer support - do not modify the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            var resources =
                new System.ComponentModel.ComponentResourceManager(typeof(SelectDocUniversalDialog));

            this.groupDocs = new System.Windows.Forms.GroupBox();
            this.docGrid   = new Grid.SelectDataGrid();
            this.dataGridTextBoxColumnDocID  = new DataGridViewTextBoxColumn();
            this.dataGridTextBoxColumnType   = new DataGridViewTextBoxColumn();
            this.dataGridTextBoxColumnDate   = new DataGridViewTextBoxColumn();
            this.dataGridTextBoxColumnNumber = new DataGridViewTextBoxColumn();
            this.dataGridTextBoxColumnDecr   = new DataGridViewTextBoxColumn();
            this.panelTop             = new System.Windows.Forms.Panel();
            this.panelButtons         = new System.Windows.Forms.Panel();
            this.buttonOK             = new System.Windows.Forms.Button();
            this.buttonCancel         = new System.Windows.Forms.Button();
            this.panelMain            = new System.Windows.Forms.Panel();
            this.panelBottom          = new System.Windows.Forms.Panel();
            this.docControl           = new Kesco.Lib.Win.Document.Controls.DocControl();
            this.splitterLeftImage    = new System.Windows.Forms.Splitter();
            this.panelLeft            = new System.Windows.Forms.Panel();
            this.groupLinks           = new System.Windows.Forms.GroupBox();
            this.linkList             = new Kesco.Lib.Win.Document.Controls.MenuList();
            this.splitterPersonsLinks = new System.Windows.Forms.Splitter();
            this.groupPersons         = new System.Windows.Forms.GroupBox();
            this.listPersons          = new System.Windows.Forms.ListView();
            this.splitterTopBottom    = new System.Windows.Forms.Splitter();
            this.panelText            = new System.Windows.Forms.Panel();
            this.panelInfo            = new System.Windows.Forms.Panel();
            this.labelInfo            = new System.Windows.Forms.Label();
            this.buttonChange         = new System.Windows.Forms.Button();
            this.buttonOpenDoc        = new System.Windows.Forms.Button();
            this.groupDocs.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.docGrid)).BeginInit();
            this.panelTop.SuspendLayout();
            this.panelButtons.SuspendLayout();
            this.panelMain.SuspendLayout();
            this.panelBottom.SuspendLayout();
            this.panelLeft.SuspendLayout();
            this.groupLinks.SuspendLayout();
            this.groupPersons.SuspendLayout();
            this.panelText.SuspendLayout();
            this.panelInfo.SuspendLayout();
            this.SuspendLayout();
            //
            // groupDocs
            //
            this.groupDocs.Controls.Add(this.docGrid);
            resources.ApplyResources(this.groupDocs, "groupDocs");
            this.groupDocs.Name    = "groupDocs";
            this.groupDocs.TabStop = false;
            //
            // dataGridTextBoxColumnDocID
            //
            resources.ApplyResources(this.dataGridTextBoxColumnDocID, "dataGridTextBoxColumnDocID");
            this.dataGridTextBoxColumnDocID.Name = "КодДокумента";
            //
            // dataGridTextBoxColumnType
            //
            resources.ApplyResources(this.dataGridTextBoxColumnType, "dataGridTextBoxColumnType");
            this.dataGridTextBoxColumnType.Name = "НазваниеДокумента";
            //
            // dataGridTextBoxColumnDate
            //
            resources.ApplyResources(this.dataGridTextBoxColumnDate, "dataGridTextBoxColumnDate");
            this.dataGridTextBoxColumnDate.Name = "ДатаДокумента";
            //
            // dataGridTextBoxColumnNumber
            //
            resources.ApplyResources(this.dataGridTextBoxColumnNumber, "dataGridTextBoxColumnNumber");
            this.dataGridTextBoxColumnNumber.Name = "НомерДокумента";
            //
            // dataGridTextBoxColumnDecr
            //
            resources.ApplyResources(this.dataGridTextBoxColumnDecr, "dataGridTextBoxColumnDecr");
            this.dataGridTextBoxColumnDecr.Name = "Описание";
            //
            // docGrid
            //
            resources.ApplyResources(this.docGrid, "docGrid");
            this.docGrid.BackgroundColor = System.Drawing.SystemColors.Window;
            this.docGrid.DataMember      = "";
            this.docGrid.ColumnHeadersDefaultCellStyle.ForeColor = System.Drawing.SystemColors.ControlText;
            this.docGrid.Name = "docGrid";
            this.docGrid.RowHeadersVisible = false;
            //
            // panelTop
            //
            this.panelTop.Controls.Add(this.groupDocs);
            resources.ApplyResources(this.panelTop, "panelTop");
            this.panelTop.Name = "panelTop";
            //
            // panelButtons
            //
            this.panelButtons.Controls.Add(this.buttonOK);
            this.panelButtons.Controls.Add(this.buttonCancel);
            resources.ApplyResources(this.panelButtons, "panelButtons");
            this.panelButtons.Name = "panelButtons";
            //
            // buttonOK
            //
            resources.ApplyResources(this.buttonOK, "buttonOK");
            this.buttonOK.Name   = "buttonOK";
            this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
            //
            // buttonCancel
            //
            resources.ApplyResources(this.buttonCancel, "buttonCancel");
            this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.buttonCancel.Name         = "buttonCancel";
            this.buttonCancel.Click       += new System.EventHandler(this.buttonCancel_Click);
            //
            // panelMain
            //
            this.panelMain.Controls.Add(this.panelBottom);
            this.panelMain.Controls.Add(this.splitterTopBottom);
            this.panelMain.Controls.Add(this.panelTop);
            resources.ApplyResources(this.panelMain, "panelMain");
            this.panelMain.Name = "panelMain";
            //
            // panelBottom
            //
            this.panelBottom.Controls.Add(this.docControl);
            this.panelBottom.Controls.Add(this.splitterLeftImage);
            this.panelBottom.Controls.Add(this.panelLeft);
            resources.ApplyResources(this.panelBottom, "panelBottom");
            this.panelBottom.Name = "panelBottom";
            //
            // docControl
            //
            this.docControl.AnnotationDraw = false;
            this.docControl.CurDocString   = null;
            resources.ApplyResources(this.docControl, "docControl");
            this.docControl.DocumentID             = 0;
            this.docControl.EmpName                = null;
            this.docControl.ForceRelicate          = false;
            this.docControl.ImageID                = -1;
            this.docControl.ImagesPanelOrientation =
                Lib.Win.ImageControl.ImageControl.TypeThumbnailPanelOrientation.Left;
            this.docControl.IsEditNotes    = false;
            this.docControl.IsMain         = false;
            this.docControl.IsMoveImage    = true;
            this.docControl.Name           = "docControl";
            this.docControl.Page           = 1;
            this.docControl.PersonParamStr = "clid=4&return=1";
            this.docControl.SelectionMode  = false;
            this.docControl.ShowThumbPanel = true;
            this.docControl.ShowToolBar    = true;
            this.docControl.ShowWebPanel   = false;
            this.docControl.SplinterPlace  = new System.Drawing.Point(200, 50);
            this.docControl.Subscribe      = new System.Guid("00000000-0000-0000-0000-000000000000");
            this.docControl.Zoom           = 100;
            this.docControl.ZoomText       = "";
            this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.SelectDocUniversalDialog_KeyUp);
            //
            // splitterLeftImage
            //
            resources.ApplyResources(this.splitterLeftImage, "splitterLeftImage");
            this.splitterLeftImage.Name    = "splitterLeftImage";
            this.splitterLeftImage.TabStop = false;
            //
            // panelLeft
            //
            this.panelLeft.Controls.Add(this.groupLinks);
            this.panelLeft.Controls.Add(this.splitterPersonsLinks);
            this.panelLeft.Controls.Add(this.groupPersons);
            resources.ApplyResources(this.panelLeft, "panelLeft");
            this.panelLeft.Name = "panelLeft";
            //
            // groupLinks
            //
            this.groupLinks.Controls.Add(this.linkList);
            resources.ApplyResources(this.groupLinks, "groupLinks");
            this.groupLinks.Name    = "groupLinks";
            this.groupLinks.TabStop = false;
            //
            // linkList
            //
            this.linkList.AccessibleRole = System.Windows.Forms.AccessibleRole.MenuPopup;
            resources.ApplyResources(this.linkList, "linkList");
            this.linkList.BackColor    = System.Drawing.SystemColors.ControlLight;
            this.linkList.CheckLinkDoc = null;
            this.linkList.Cursor       = System.Windows.Forms.Cursors.WaitCursor;
            this.linkList.DocID        = 0;
            this.linkList.Name         = "linkList";
            this.linkList.NoClose      = false;
            this.linkList.Zoom         = "100";
            this.linkList.TreeMouseUp += new System.Windows.Forms.MouseEventHandler(this.linkList_TreeMouseUp);
            //
            // splitterPersonsLinks
            //
            resources.ApplyResources(this.splitterPersonsLinks, "splitterPersonsLinks");
            this.splitterPersonsLinks.Name    = "splitterPersonsLinks";
            this.splitterPersonsLinks.TabStop = false;
            //
            // groupPersons
            //
            this.groupPersons.Controls.Add(this.listPersons);
            resources.ApplyResources(this.groupPersons, "groupPersons");
            this.groupPersons.Name    = "groupPersons";
            this.groupPersons.TabStop = false;
            //
            // listPersons
            //
            resources.ApplyResources(this.listPersons, "listPersons");
            this.listPersons.FullRowSelect    = true;
            this.listPersons.HeaderStyle      = System.Windows.Forms.ColumnHeaderStyle.None;
            this.listPersons.HideSelection    = false;
            this.listPersons.MultiSelect      = false;
            this.listPersons.Name             = "listPersons";
            this.listPersons.ShowItemToolTips = true;
            this.listPersons.UseCompatibleStateImageBehavior = false;
            this.listPersons.View       = System.Windows.Forms.View.Details;
            this.listPersons.LostFocus += new System.EventHandler(listPersons_LostFocus);
            //
            // splitterTopBottom
            //
            resources.ApplyResources(this.splitterTopBottom, "splitterTopBottom");
            this.splitterTopBottom.Name    = "splitterTopBottom";
            this.splitterTopBottom.TabStop = false;
            //
            // panelText
            //
            this.panelText.Controls.Add(this.panelInfo);
            this.panelText.Controls.Add(this.buttonChange);
            this.panelText.Controls.Add(this.buttonOpenDoc);
            resources.ApplyResources(this.panelText, "panelText");
            this.panelText.Name = "panelText";
            //
            // panelInfo
            //
            resources.ApplyResources(this.panelInfo, "panelInfo");
            this.panelInfo.Controls.Add(this.labelInfo);
            this.panelInfo.Name = "panelInfo";
            //
            // labelInfo
            //
            resources.ApplyResources(this.labelInfo, "labelInfo");
            this.labelInfo.Name = "labelInfo";
            //
            // buttonChange
            //
            resources.ApplyResources(this.buttonChange, "buttonChange");
            this.buttonChange.Name   = "buttonChange";
            this.buttonChange.Click += new System.EventHandler(this.buttonChange_Click);
            //
            // buttonOpenDoc
            //
            resources.ApplyResources(this.buttonOpenDoc, "buttonOpenDoc");
            this.buttonOpenDoc.Name   = "buttonOpenDoc";
            this.buttonOpenDoc.Click += new System.EventHandler(this.buttonOpenDoc_Click);
            //
            // SelectDocUniversalDialog
            //
            this.AcceptButton = this.buttonOK;
            resources.ApplyResources(this, "$this");
            this.CancelButton = this.buttonCancel;
            this.Controls.Add(this.panelMain);
            this.Controls.Add(this.panelText);
            this.Controls.Add(this.panelButtons);
            this.MinimizeBox = false;
            this.Name        = "SelectDocUniversalDialog";
            this.Load       += new System.EventHandler(this.SelectDocUniversalDialog_Load);
            this.Closed     += new System.EventHandler(this.SelectDocUniversalDialog_Closed);
            this.groupDocs.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.docGrid)).EndInit();
            this.panelTop.ResumeLayout(false);
            this.panelButtons.ResumeLayout(false);
            this.panelMain.ResumeLayout(false);
            this.panelBottom.ResumeLayout(false);
            this.panelLeft.ResumeLayout(false);
            this.groupLinks.ResumeLayout(false);
            this.groupPersons.ResumeLayout(false);
            this.panelText.ResumeLayout(false);
            this.panelInfo.ResumeLayout(false);
            this.panelInfo.PerformLayout();
            this.ResumeLayout(false);
        }
示例#6
0
 public SavePartComponent(IContainer container, Controls.DocControl control)
     : base(container, control)
 {
 }
 public DocumentComponent(IContainer container, Controls.DocControl control)
     : base(container, control)
 {
 }
 public SaveToArchiveComponent(IContainer container, Controls.DocControl control) : base(container, control)
 {
 }
示例#9
0
 public SaveFromScanerComponent(IContainer container, Controls.DocControl control)
     : base(container, control)
 {
 }