コード例 #1
0
 public EditLine(ItemEditControlBase container, Control textbox, Label labelCaption, Label labelColor)
 {
     this._container    = container;
     this._editBox      = textbox;
     this._labelCaption = labelCaption;
     this._labelColor   = labelColor;
 }
コード例 #2
0
ファイル: IssueEditControl.cs プロジェクト: zszqwe/dp2
        // 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// <summary>
        /// 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// </summary>
        /// <param name="r">要和自己进行比较的控件对象</param>
        public override void HighlightDifferences(ItemEditControlBase r)
        {
            var refControl = r as IssueEditControl;

            if (this.PublishTime != refControl.PublishTime)
            {
                this.label_publishTime_color.BackColor = this.ColorDifference;
            }

            if (this.State != refControl.State)
            {
                this.label_state_color.BackColor = this.ColorDifference;
            }

            if (this.Issue != refControl.Issue)
            {
                this.label_issue_color.BackColor = this.ColorDifference;
            }

            if (this.Zong != refControl.Zong)
            {
                this.label_zong_color.BackColor = this.ColorDifference;
            }

            if (this.Volume != refControl.Volume)
            {
                this.label_volume_color.BackColor = this.ColorDifference;
            }

            if (this.OrderInfo != refControl.OrderInfo)
            {
                this.label_orderInfo_color.BackColor = this.ColorDifference;
            }

            if (this.Comment != refControl.Comment)
            {
                this.label_comment_color.BackColor = this.ColorDifference;
            }

            if (this.BatchNo != refControl.BatchNo)
            {
                this.label_batchNo_color.BackColor = this.ColorDifference;
            }

            if (this.RecPath != refControl.RecPath)
            {
                this.label_recPath_color.BackColor = this.ColorDifference;
            }

            if (this.RefID != refControl.RefID)
            {
                this.label_refID_color.BackColor = this.ColorDifference;
            }

            if (this.Operations != refControl.Operations)
            {
                this.label_operations_color.BackColor = this.ColorDifference;
            }
        }
コード例 #3
0
ファイル: OrderEditForm.cs プロジェクト: distinct2010/dp2
        public static string GetXml(ItemEditControlBase control)
        {
            string strError = "";
            string strXml   = "";
            int    nRet     = control.GetData(false, out strXml, out strError);

            if (nRet == -1)
            {
                throw new Exception(strError);
            }
            return(strXml);
        }
コード例 #4
0
        public EditLine(ItemEditControlBase container, int nRow)
        {
            this._container = container;

            // 第一列
            this._labelCaption = container._tableLayoutPanel_main.GetControlFromPosition(0, nRow) as Label;

            // 第二列
            this._labelColor = container._tableLayoutPanel_main.GetControlFromPosition(1, nRow) as Label;

            // 第三列
            this._editBox = container._tableLayoutPanel_main.GetControlFromPosition(2, nRow);
        }
コード例 #5
0
ファイル: OrderEditForm.cs プロジェクト: distinct2010/dp2
        public static void SetXml(ItemEditControlBase control,
                                  string strXml,
                                  string strPublicationType)
        {
            string strError = "";

            // 去掉记录里面的 issueCount 和 range 元素
            if (string.IsNullOrEmpty(strXml) == false &&
                strPublicationType == "book")
            {
                XmlDocument dom = new XmlDocument();
                DomUtil.SafeLoadXml(dom, strXml);
                DomUtil.DeleteElement(dom.DocumentElement, "range");
                DomUtil.DeleteElement(dom.DocumentElement, "issueCount");
                strXml = dom.DocumentElement.OuterXml;
            }

            int nRet = control.SetData(strXml, "", null, out strError);

            if (nRet == -1)
            {
                throw new Exception(strError);
            }
        }
コード例 #6
0
ファイル: EntityEditControl.cs プロジェクト: paopaofeng/dp2
        // 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// <summary>
        /// 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// </summary>
        /// <param name="r">要和自己进行比较的控件对象</param>
        public override void HighlightDifferences(ItemEditControlBase r)
        {
            var refControl = r as EntityEditControl;

            if (this.Barcode != refControl.Barcode)
                this.label_barcode_color.BackColor = this.ColorDifference;

            if (this.State != refControl.State)
                this.label_state_color.BackColor = this.ColorDifference;

            if (this.PublishTime != refControl.PublishTime)
                this.label_publishTime_color.BackColor = this.ColorDifference;

            if (this.LocationString != refControl.LocationString)
                this.label_location_color.BackColor = this.ColorDifference;

            if (this.Seller != refControl.Seller)
                this.label_seller_color.BackColor = this.ColorDifference;

            if (this.Source != refControl.Source)
                this.label_source_color.BackColor = this.ColorDifference;

            if (this.Price != refControl.Price)
                this.label_price_color.BackColor = this.ColorDifference;

            if (this.BindingCost != refControl.BindingCost)
                this.label_bindingCost_color.BackColor = this.ColorDifference;

            if (this.BookType != refControl.BookType)
                this.label_bookType_color.BackColor = this.ColorDifference;

            if (this.RegisterNo != refControl.RegisterNo)
                this.label_registerNo_color.BackColor = this.ColorDifference;

            if (this.Comment != refControl.Comment)
                this.label_comment_color.BackColor = this.ColorDifference;

            if (this.MergeComment != refControl.MergeComment)
                this.label_mergeComment_color.BackColor = this.ColorDifference;

            if (this.BatchNo != refControl.BatchNo)
                this.label_batchNo_color.BackColor = this.ColorDifference;

            if (this.Volume != refControl.Volume)
                this.label_volume_color.BackColor = this.ColorDifference;

            if (this.AccessNo != refControl.AccessNo)
                this.label_accessNo_color.BackColor = this.ColorDifference;

            if (this.Borrower != refControl.Borrower)
                this.label_borrower_color.BackColor = this.ColorDifference;

            if (this.BorrowDate != refControl.BorrowDate)
                this.label_borrowDate_color.BackColor = this.ColorDifference;

            if (this.BorrowPeriod != refControl.BorrowPeriod)
                this.label_borrowPeriod_color.BackColor = this.ColorDifference;

            if (this.RecPath != refControl.RecPath)
                this.label_recPath_color.BackColor = this.ColorDifference;

            if (this.RefID != refControl.RefID)
                this.label_refID_color.BackColor = this.ColorDifference;

            if (this.Intact != refControl.Intact)
                this.label_intact_color.BackColor = this.ColorDifference;

            if (this.Binding != refControl.Binding)
                this.label_binding_color.BackColor = this.ColorDifference;

            if (this.Operations != refControl.Operations)
                this.label_operations_color.BackColor = this.ColorDifference;
        }
コード例 #7
0
        // 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// <summary>
        /// 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// </summary>
        /// <param name="r">要和自己进行比较的控件对象</param>
        public override void HighlightDifferences(ItemEditControlBase r)
        {
            var refControl = r as CommentEditControl;

            if (this.Index != refControl.Index)
            {
                this.label_index_color.BackColor = this.ColorDifference;
            }

            if (this.State != refControl.State)
            {
                this.label_state_color.BackColor = this.ColorDifference;
            }

            if (this.TypeString != refControl.TypeString)
            {
                this.label_type_color.BackColor = this.ColorDifference;
            }

            if (this.OrderSuggestion != refControl.OrderSuggestion)
            {
                this.label_orderSuggestion_color.BackColor = this.ColorDifference;
            }

            if (this.Title != refControl.Title)
            {
                this.label_title_color.BackColor = this.ColorDifference;
            }

            if (this.Creator != refControl.Creator)
            {
                this.label_creator_color.BackColor = this.ColorDifference;
            }

            if (this.Subject != refControl.Subject)
            {
                this.label_subject_color.BackColor = this.ColorDifference;
            }

            if (this.Summary != refControl.Summary)
            {
                this.label_summary_color.BackColor = this.ColorDifference;
            }

            if (this.Content != refControl.Content)
            {
                this.label_content_color.BackColor = this.ColorDifference;
            }

            if (this.CreateTime != refControl.CreateTime)
            {
                this.label_createTime_color.BackColor = this.ColorDifference;
            }

            if (this.LastModified != refControl.LastModified)
            {
                this.label_lastModified_color.BackColor = this.ColorDifference;
            }

            if (this.RecPath != refControl.RecPath)
            {
                this.label_recPath_color.BackColor = this.ColorDifference;
            }

            if (this.RefID != refControl.RefID)
            {
                this.label_refID_color.BackColor = this.ColorDifference;
            }

            if (this.Operations != refControl.Operations)
            {
                this.label_operations_color.BackColor = this.ColorDifference;
            }
        }
コード例 #8
0
        // 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// <summary>
        /// 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// </summary>
        /// <param name="r">要和自己进行比较的控件对象</param>
        public override void HighlightDifferences(ItemEditControlBase r)
        {
            var refControl = r as OrderEditControl;

            if (this.Index != refControl.Index)
            {
                this.label_index_color.BackColor = this.ColorDifference;
            }

            if (this.State != refControl.State)
            {
                this.label_state_color.BackColor = this.ColorDifference;
            }

            if (this.CatalogNo != refControl.CatalogNo)
            {
                this.label_catalogNo_color.BackColor = this.ColorDifference;
            }

            if (this.Seller != refControl.Seller)
            {
                this.label_seller_color.BackColor = this.ColorDifference;
            }

            if (this.Source != refControl.Source)
            {
                this.label_source_color.BackColor = this.ColorDifference;
            }

            if (this.Range != refControl.Range)
            {
                this.label_range_color.BackColor = this.ColorDifference;
            }

            if (this.IssueCount != refControl.IssueCount)
            {
                this.label_issueCount_color.BackColor = this.ColorDifference;
            }

            if (this.Copy != refControl.Copy)
            {
                this.label_copy_color.BackColor = this.ColorDifference;
            }

            if (this.Price != refControl.Price)
            {
                this.label_price_color.BackColor = this.ColorDifference;
            }

            if (this.TotalPrice != refControl.TotalPrice)
            {
                this.label_totalPrice_color.BackColor = this.ColorDifference;
            }

            if (this.FixedPrice != refControl.FixedPrice)
            {
                this.label_fixedPrice_color.BackColor = this.ColorDifference;
            }

            if (this.Discount != refControl.Discount)
            {
                this.label_discount_color.BackColor = this.ColorDifference;
            }

            if (this.OrderTime != refControl.OrderTime)
            {
                this.label_orderTime_color.BackColor = this.ColorDifference;
            }

            if (this.OrderID != refControl.OrderID)
            {
                this.label_orderID_color.BackColor = this.ColorDifference;
            }

            if (this.Distribute != refControl.Distribute)
            {
                this.label_distribute_color.BackColor = this.ColorDifference;
            }

            if (this.Class != refControl.Class)
            {
                this.label_class_color.BackColor = this.ColorDifference;
            }

            if (this.Comment != refControl.Comment)
            {
                this.label_comment_color.BackColor = this.ColorDifference;
            }

            if (this.BatchNo != refControl.BatchNo)
            {
                this.label_batchNo_color.BackColor = this.ColorDifference;
            }

            if (this.SellerAddress != refControl.SellerAddress)
            {
                this.label_sellerAddress_color.BackColor = this.ColorDifference;
            }

            if (this.RecPath != refControl.RecPath)
            {
                this.label_recPath_color.BackColor = this.ColorDifference;
            }

            if (this.RefID != refControl.RefID)
            {
                this.label_refID_color.BackColor = this.ColorDifference;
            }

            if (this.Operations != refControl.Operations)
            {
                this.label_operations_color.BackColor = this.ColorDifference;
            }
        }
コード例 #9
0
 // 比较自己和refControl的数据差异,用特殊颜色显示差异字段
 /// <summary>
 /// 比较自己和refControl的数据差异,用特殊颜色显示差异字段
 /// </summary>
 /// <param name="r">要和自己进行比较的控件对象</param>
 public virtual void HighlightDifferences(ItemEditControlBase r)
 {
     throw new Exception("尚未实现 HighlightDifferences()");
 }
コード例 #10
0
ファイル: OrderEditControl.cs プロジェクト: paopaofeng/dp2
        // 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// <summary>
        /// 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// </summary>
        /// <param name="r">要和自己进行比较的控件对象</param>
        public override void HighlightDifferences(ItemEditControlBase r)
        {
            var refControl = r as OrderEditControl;

            if (this.Index != refControl.Index)
                this.label_index_color.BackColor = this.ColorDifference;

            if (this.State != refControl.State)
                this.label_state_color.BackColor = this.ColorDifference;

            if (this.CatalogNo != refControl.CatalogNo)
                this.label_catalogNo_color.BackColor = this.ColorDifference;


            if (this.Seller != refControl.Seller)
                this.label_seller_color.BackColor = this.ColorDifference;

            if (this.Source != refControl.Source)
                this.label_source_color.BackColor = this.ColorDifference;

            if (this.Range != refControl.Range)
                this.label_range_color.BackColor = this.ColorDifference;

            if (this.IssueCount != refControl.IssueCount)
                this.label_issueCount_color.BackColor = this.ColorDifference;

            if (this.Copy != refControl.Copy)
                this.label_copy_color.BackColor = this.ColorDifference;

            if (this.Price != refControl.Price)
                this.label_price_color.BackColor = this.ColorDifference;

            if (this.TotalPrice != refControl.TotalPrice)
                this.label_totalPrice_color.BackColor = this.ColorDifference;

            if (this.OrderTime != refControl.OrderTime)
                this.label_orderTime_color.BackColor = this.ColorDifference;

            if (this.OrderID != refControl.OrderID)
                this.label_orderID_color.BackColor = this.ColorDifference;

            if (this.Distribute != refControl.Distribute)
                this.label_distribute_color.BackColor = this.ColorDifference;

            if (this.Class != refControl.Class)
                this.label_class_color.BackColor = this.ColorDifference;

            if (this.Comment != refControl.Comment)
                this.label_comment_color.BackColor = this.ColorDifference;

            if (this.BatchNo != refControl.BatchNo)
                this.label_batchNo_color.BackColor = this.ColorDifference;

            if (this.SellerAddress != refControl.SellerAddress)
                this.label_sellerAddress_color.BackColor = this.ColorDifference;

            if (this.RecPath != refControl.RecPath)
                this.label_recPath_color.BackColor = this.ColorDifference;

            if (this.RefID != refControl.RefID)
                this.label_refID_color.BackColor = this.ColorDifference;

            if (this.Operations != refControl.Operations)
                this.label_operations_color.BackColor = this.ColorDifference;
        }
コード例 #11
0
ファイル: IssueEditControl.cs プロジェクト: paopaofeng/dp2
        // 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// <summary>
        /// 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// </summary>
        /// <param name="r">要和自己进行比较的控件对象</param>
        public override void HighlightDifferences(ItemEditControlBase r)
        {
            var refControl = r as IssueEditControl;

            if (this.PublishTime != refControl.PublishTime)
                this.label_publishTime_color.BackColor = this.ColorDifference;

            if (this.State != refControl.State)
                this.label_state_color.BackColor = this.ColorDifference;

            if (this.Issue != refControl.Issue)
                this.label_issue_color.BackColor = this.ColorDifference;

            if (this.Zong != refControl.Zong)
                this.label_zong_color.BackColor = this.ColorDifference;

            if (this.Volume != refControl.Volume)
                this.label_volume_color.BackColor = this.ColorDifference;

            if (this.OrderInfo != refControl.OrderInfo)
                this.label_orderInfo_color.BackColor = this.ColorDifference;

            if (this.Comment != refControl.Comment)
                this.label_comment_color.BackColor = this.ColorDifference;

            if (this.BatchNo != refControl.BatchNo)
                this.label_batchNo_color.BackColor = this.ColorDifference;

            if (this.RecPath != refControl.RecPath)
                this.label_recPath_color.BackColor = this.ColorDifference;

            if (this.RefID != refControl.RefID)
                this.label_refID_color.BackColor = this.ColorDifference;

            if (this.Operations != refControl.Operations)
                this.label_operations_color.BackColor = this.ColorDifference;
        }
コード例 #12
0
ファイル: CommentEditControl.cs プロジェクト: paopaofeng/dp2
        // 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// <summary>
        /// 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// </summary>
        /// <param name="r">要和自己进行比较的控件对象</param>
        public override void HighlightDifferences(ItemEditControlBase r)
        {
            var refControl = r as CommentEditControl;

            if (this.Index != refControl.Index)
                this.label_index_color.BackColor = this.ColorDifference;

            if (this.State != refControl.State)
                this.label_state_color.BackColor = this.ColorDifference;

            if (this.TypeString != refControl.TypeString)
                this.label_type_color.BackColor = this.ColorDifference;

            if (this.OrderSuggestion != refControl.OrderSuggestion)
                this.label_orderSuggestion_color.BackColor = this.ColorDifference;

            if (this.Title != refControl.Title)
                this.label_title_color.BackColor = this.ColorDifference;

            if (this.Creator != refControl.Creator)
                this.label_creator_color.BackColor = this.ColorDifference;

            if (this.Subject != refControl.Subject)
                this.label_subject_color.BackColor = this.ColorDifference;

            if (this.Summary != refControl.Summary)
                this.label_summary_color.BackColor = this.ColorDifference;

            if (this.Content != refControl.Content)
                this.label_content_color.BackColor = this.ColorDifference;

            if (this.CreateTime != refControl.CreateTime)
                this.label_createTime_color.BackColor = this.ColorDifference;

            if (this.LastModified != refControl.LastModified)
                this.label_lastModified_color.BackColor = this.ColorDifference;

            if (this.RecPath != refControl.RecPath)
                this.label_recPath_color.BackColor = this.ColorDifference;

            if (this.RefID != refControl.RefID)
                this.label_refID_color.BackColor = this.ColorDifference;

            if (this.Operations != refControl.Operations)
                this.label_operations_color.BackColor = this.ColorDifference;
        }
コード例 #13
0
ファイル: ItemEditControlBase.cs プロジェクト: paopaofeng/dp2
                // 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// <summary>
        /// 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// </summary>
        /// <param name="r">要和自己进行比较的控件对象</param>
        public virtual void HighlightDifferences(ItemEditControlBase r)
        {
            throw new Exception("尚未实现 HighlightDifferences()");

        }
コード例 #14
0
ファイル: ItemEditControlBase.cs プロジェクト: paopaofeng/dp2
        public EditLine(ItemEditControlBase container, int nRow)
        {
            this._container = container;

            // 第一列
            this._labelCaption = container._tableLayoutPanel_main.GetControlFromPosition(0, nRow) as Label;

            // 第二列
            this._labelColor = container._tableLayoutPanel_main.GetControlFromPosition(1, nRow) as Label;

            // 第三列
            this._editBox = container._tableLayoutPanel_main.GetControlFromPosition(2, nRow);
        }
コード例 #15
0
ファイル: ItemEditControlBase.cs プロジェクト: paopaofeng/dp2
 public EditLine(ItemEditControlBase container, Control textbox, Label labelCaption, Label labelColor)
 {
     this._container = container;
     this._editBox = textbox;
     this._labelCaption = labelCaption;
     this._labelColor = labelColor;
 }
コード例 #16
0
ファイル: ReaderEditControl.cs プロジェクト: paopaofeng/dp2
        // 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// <summary>
        /// 比较自己和refControl的数据差异,用特殊颜色显示差异字段
        /// </summary>
        /// <param name="r">要和自己进行比较的控件对象</param>
        public override void HighlightDifferences(ItemEditControlBase r)
        {
            var refControl = r as ReaderEditControl;

            if (this.Barcode != refControl.Barcode)
                this.label_barcode_color.BackColor = this.ColorDifference;

            if (this.CardNumber != refControl.CardNumber)
                this.label_cardNumber_color.BackColor = this.ColorDifference;

            if (this.ReaderType != refControl.ReaderType)
                this.label_readerType_color.BackColor = this.ColorDifference;

            if (this.State != refControl.State)
                this.label_state_color.BackColor = this.ColorDifference;

            if (this.Comment != refControl.Comment)
                this.label_comment_color.BackColor = this.ColorDifference;


            if (this.CreateDate != refControl.CreateDate)
                this.label_createDate_color.BackColor = this.ColorDifference;

            if (this.ExpireDate != refControl.ExpireDate)
                this.label_expireDate_color.BackColor = this.ColorDifference;

            // 2007/6/15
            if (this.HireExpireDate != refControl.HireExpireDate)
                this.label_hireExpireDate_color.BackColor = this.ColorDifference;

            if (this.HirePeriod != refControl.HirePeriod)
                this.label_hirePeriod_color.BackColor = this.ColorDifference;

            if (this.Foregift != refControl.Foregift)
                this.label_foregift_color.BackColor = this.ColorDifference;

            if (this.NameString != refControl.NameString)
                this.label_name_color.BackColor = this.ColorDifference;

            if (this.NamePinyin != refControl.NamePinyin)
                this.label_namePinyin_color.BackColor = this.ColorDifference;

            if (this.Gender != refControl.Gender)
                this.label_gender_color.BackColor = this.ColorDifference;

            if (this.DateOfBirth != refControl.DateOfBirth)
                this.label_dateOfBirth_color.BackColor = this.ColorDifference;

            if (this.IdCardNumber != refControl.IdCardNumber)
                this.label_idCardNumber_color.BackColor = this.ColorDifference;

            if (this.Department != refControl.Department)
                this.label_department_color.BackColor = this.ColorDifference;

            if (this.Post != refControl.Post)
                this.label_post_color.BackColor = this.ColorDifference;


            if (this.Address != refControl.Address)
                this.label_address_color.BackColor = this.ColorDifference;

            if (this.Tel != refControl.Tel)
                this.label_tel_color.BackColor = this.ColorDifference;

            if (this.Email != refControl.Email)
                this.label_email_color.BackColor = this.ColorDifference;

            if (this.Rights != refControl.Rights)
                this.label_rights_color.BackColor = this.ColorDifference;

            if (this.PersonalLibrary != refControl.PersonalLibrary)
                this.label_personalLibrary_color.BackColor = this.ColorDifference;

            if (this.Access != refControl.Access)
                this.label_access_color.BackColor = this.ColorDifference;

            if (this.Friends != refControl.Friends)
                this.label_friends_color.BackColor = this.ColorDifference;

            if (this.RecPath != refControl.RecPath)
                this.label_recPath_color.BackColor = this.ColorDifference;

            if (this.RefID != refControl.RefID)
                this.label_refID_color.BackColor = this.ColorDifference;
        }