示例#1
0
        protected override void OnLoaded()
        {
            base.OnLoaded();
            _listBeMonitorField = new List <ConmonFunctionForUpdate.MonitorField>
            {
                new ConmonFunctionForUpdate.MonitorField {
                    MonitorType = ConmonFunctionForUpdate.EnumMonitorType.Deadline, FieldName = "dt_AppDate", CodeNameSpace = "DataEntities.Case.Trademarks.BasicTrademark", CodeFieldName = "TheLawInfo.dt_AppDate"
                },
                new ConmonFunctionForUpdate.MonitorField {
                    MonitorType = ConmonFunctionForUpdate.EnumMonitorType.Deadline, FieldName = "dt_PrePubDate", CodeNameSpace = "DataEntities.Case.Trademarks.BasicTrademark", CodeFieldName = "TheLawInfo.dt_PrePubDate"
                },
                new ConmonFunctionForUpdate.MonitorField {
                    MonitorType = ConmonFunctionForUpdate.EnumMonitorType.Deadline, FieldName = "dt_FormalCheckDate", CodeNameSpace = "DataEntities.Case.Trademarks.BasicTrademark", CodeFieldName = "TheLawInfo.dt_FormalCheckDate"
                },
                new ConmonFunctionForUpdate.MonitorField {
                    MonitorType = ConmonFunctionForUpdate.EnumMonitorType.Deadline, FieldName = "dt_EssCheckDate", CodeNameSpace = "DataEntities.Case.Trademarks.BasicTrademark", CodeFieldName = "TheLawInfo.dt_EssCheckDate"
                },
                new ConmonFunctionForUpdate.MonitorField {
                    MonitorType = ConmonFunctionForUpdate.EnumMonitorType.Deadline, FieldName = "dt_RegistrationDate", CodeNameSpace = "DataEntities.Case.Trademarks.BasicTrademark", CodeFieldName = "TheLawInfo.dt_RegistrationDate"
                },
                new ConmonFunctionForUpdate.MonitorField {
                    MonitorType = ConmonFunctionForUpdate.EnumMonitorType.Deadline, FieldName = "dt_ApprovedDate", CodeNameSpace = "DataEntities.Case.Trademarks.BasicTrademark", CodeFieldName = "TheLawInfo.dt_ApprovedDate"
                },
                new ConmonFunctionForUpdate.MonitorField {
                    MonitorType = ConmonFunctionForUpdate.EnumMonitorType.Deadline, FieldName = "dt_BeginDate", CodeNameSpace = "DataEntities.Case.Trademarks.BasicTrademark", CodeFieldName = "TheLawInfo.dt_BeginDate"
                },
                new ConmonFunctionForUpdate.MonitorField {
                    MonitorType = ConmonFunctionForUpdate.EnumMonitorType.Deadline, FieldName = "dt_EndDate", CodeNameSpace = "DataEntities.Case.Trademarks.BasicTrademark", CodeFieldName = "TheLawInfo.dt_EndDate"
                },
                new ConmonFunctionForUpdate.MonitorField {
                    MonitorType = ConmonFunctionForUpdate.EnumMonitorType.Deadline, FieldName = "dt_WithdrawDate", CodeNameSpace = "DataEntities.Case.Trademarks.BasicTrademark", CodeFieldName = "TheLawInfo.dt_WithdrawDate"
                },
                new ConmonFunctionForUpdate.MonitorField {
                    MonitorType = ConmonFunctionForUpdate.EnumMonitorType.Deadline, FieldName = "dt_NextRenewal", CodeNameSpace = "DataEntities.Case.Trademarks.BasicTrademark", CodeFieldName = "TheLawInfo.dt_NextRenewal"
                },
                new ConmonFunctionForUpdate.MonitorField {
                    MonitorType = ConmonFunctionForUpdate.EnumMonitorType.Deadline, FieldName = "dt_DivSubmitDate", CodeNameSpace = "DataEntities.Case.Trademarks.BasicTrademark", CodeFieldName = "TheLawInfo.dt_DivSubmitDate"
                },
                new ConmonFunctionForUpdate.MonitorField {
                    MonitorType = ConmonFunctionForUpdate.EnumMonitorType.Deadline, FieldName = "dt_OrigAppDate", CodeNameSpace = "DataEntities.Case.Trademarks.BasicTrademark", CodeFieldName = "TheLawInfo.dt_OrigAppDate"
                },
                new ConmonFunctionForUpdate.MonitorField {
                    MonitorType = ConmonFunctionForUpdate.EnumMonitorType.Deadline, FieldName = "dt_MadFilingDate", CodeNameSpace = "DataEntities.Case.Trademarks.BasicTrademark", CodeFieldName = "TheLawInfo.dt_MadFilingDate"
                },
                new ConmonFunctionForUpdate.MonitorField {
                    MonitorType = ConmonFunctionForUpdate.EnumMonitorType.Deadline, FieldName = "dt_MadRegDate", CodeNameSpace = "DataEntities.Case.Trademarks.BasicTrademark", CodeFieldName = "TheLawInfo.dt_MadRegDate"
                },
                new ConmonFunctionForUpdate.MonitorField {
                    MonitorType = ConmonFunctionForUpdate.EnumMonitorType.RelatedInfo, FieldName = "s_AppNo", CodeNameSpace = "DataEntities.Case.Trademarks.BasicTrademark", CodeFieldName = "TheLawInfo.s_AppNo"
                },
            };
            var type = this.GetType();

            _xplCopyOfObject = Activator.CreateInstance(type, new[] { new UnitOfWork() }) as XPLiteObject;
            ConmonFunctionForUpdate.CopyDataEntityFileds(this, _xplCopyOfObject, _listBeMonitorField);
        }
示例#2
0
        protected override void OnLoaded()
        {
            base.OnLoaded();
            _listBeMonitorDateField = new List <ConmonFunctionForUpdate.MonitorField>
            {
                new ConmonFunctionForUpdate.MonitorField {
                    FieldName = "dt_PubDate", CodeNameSpace = "DataEntities.Case.Patents.BasicPatent", CodeFieldName = "TheOrigPatInfo.dt_PubDate"
                },
                new ConmonFunctionForUpdate.MonitorField {
                    FieldName = "dt_IssuedPubDate", CodeNameSpace = "DataEntities.Case.Patents.BasicPatent", CodeFieldName = "TheOrigPatInfo.dt_IssuedPubDate"
                },
            };
            var type = this.GetType();

            _xplCopyOfObject = Activator.CreateInstance(type, new[] { new UnitOfWork() }) as XPLiteObject;
            ConmonFunctionForUpdate.CopyDataEntityFileds(this, _xplCopyOfObject, _listBeMonitorDateField);
        }