当前位置: 首页>>代码示例>>C#>>正文


C# DoWorkEventArgs.get_Argument方法代码示例

本文整理汇总了C#中System.ComponentModel.DoWorkEventArgs.get_Argument方法的典型用法代码示例。如果您正苦于以下问题:C# DoWorkEventArgs.get_Argument方法的具体用法?C# DoWorkEventArgs.get_Argument怎么用?C# DoWorkEventArgs.get_Argument使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.ComponentModel.DoWorkEventArgs的用法示例。


在下文中一共展示了DoWorkEventArgs.get_Argument方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: workerProcess_DoWork

 private void workerProcess_DoWork(object sender, DoWorkEventArgs e)
 {
     object[] objArray = e.get_Argument() as object[];
     e.set_Result(null);
     try
     {
         GroupOperation.AccountChangeHouseHolder(objArray[0] as Organization, objArray[1] as Organization, this.dbFromDate.Value, objArray[2] as ObjectList<LocalAddress>, this.tbAccountNumberSufix.get_Text().Trim(), this.cbMoveDebtChangeHH.get_Checked(), this.cbMoveAvansChangeHH.get_Checked(), this.cbMoveTimeOffChangeHH.get_Checked(), this.dt, (this.selectOrgDoc.SelectedOrgDocument == null) ? ((long) 0L) : this.selectOrgDoc.SelectedOrgDocument.Id);
     }
     catch (System.Exception exception)
     {
         e.set_Result(exception);
     }
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:13,代码来源:AccountHouseHolderChangeView.cs

示例2: bwArea_DoWork

 private void bwArea_DoWork(object sender, DoWorkEventArgs e)
 {
     if (this.addressesSelectControl1.getChecked)
     {
         if (e.get_Argument() is Area)
         {
             Area area = (Area) e.get_Argument();
             object[] objArray = new object[] { area.GetLocalAddresses(), area.GetInversedCollapsedAddresses() };
             e.set_Result(objArray);
         }
         else if (e.get_Argument() is AreaGroup)
         {
             AreaGroup group = (AreaGroup) e.get_Argument();
             object[] objArray2 = new object[] { group.GetLocalAddresses(), group.GetInversedCollapsedAddresses() };
             e.set_Result(objArray2);
         }
     }
     else
     {
         e.set_Result(e.get_Argument());
     }
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:22,代码来源:AreaAddressesForm.cs

示例3: bwProcess_DoWork

 private void bwProcess_DoWork(object sender, DoWorkEventArgs e)
 {
     ObjectList<PayRequestGate> list = (ObjectList<PayRequestGate>) e.get_Argument();
     foreach (PayRequestGate gate in list)
     {
         gate.ProcessRequestGate();
     }
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:8,代码来源:PayProcessRequestGateForm.cs

示例4: workerCompareServices_DoWork

 private void workerCompareServices_DoWork(object sender, DoWorkEventArgs e)
 {
     ObjectList<Service> list;
     ObjectList<Service> list2;
     object[] objArray = e.get_Argument() as object[];
     GroupOperation.GetNotExistsServicesByHouseHolder((objArray[0] as Area).Id, objArray[1] as Organization, objArray[2] as Organization, out list, out list2, this.dbFromDate.Value);
     object[] objArray2 = new object[] { list, list2 };
     e.set_Result(objArray2);
     (objArray[0] as Area).DeleteWithRelations();
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:10,代码来源:AccountHouseHolderChangeView.cs

示例5: m_WorkerFind_DoWork

 private void m_WorkerFind_DoWork(object sender, DoWorkEventArgs e)
 {
     object[] objArray = (object[]) e.get_Argument();
     Account account = objArray[0] as Account;
     System.DateTime fromDate = (System.DateTime) objArray[1];
     System.DateTime toDate = (System.DateTime) objArray[2];
     FasetItem typeOperation = objArray[3] as FasetItem;
     FasetItem typeRecalc = objArray[4] as FasetItem;
     FasetItem typeAgent = objArray[5] as FasetItem;
     bool loadSumm = (bool) ((bool) objArray[6]);
     ObjectList<GroupOperation> list = GroupOperation.FindByAccountPeriodCreated(typeOperation, typeRecalc, typeAgent, account, fromDate, toDate, loadSumm);
     e.set_Result(list);
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:13,代码来源:JnOperationsView.cs

示例6: bwLoadAddresses_DoWork

 private void bwLoadAddresses_DoWork(object sender, DoWorkEventArgs e)
 {
     e.set_Result(((Area) e.get_Argument()).GetAddresses());
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:4,代码来源:AddressAreaGroupForm.cs

示例7: m_CalcWorker_DoWork

 private void m_CalcWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     if ((e.get_Argument() == null) || (e.get_Argument() == Area.Null))
     {
         GroupOperation.InitialCalculation(0L);
     }
     else
     {
         GroupOperation.InitialCalculation(((Area) e.get_Argument()).Id);
         ((Area) e.get_Argument()).DeleteWithRelations();
     }
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:12,代码来源:InitialCalculationForm.cs

示例8: m_RequestWorker_DoWork

 private void m_RequestWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     this.m_Request = ObjectWithId.FindById<PayRequest>(this.m_Request.Id);
     Organization organization = ((Organization) this.m_HouseHoldersSource.get_Current()) ?? Organization.Null;
     this.m_Request.HouseHolderId = organization.Id;
     this.m_Request.Period = (System.DateTime) e.get_Argument();
     this.m_Request.PaidSumm = 0M;
     this.m_Request.UseBankrupt = this.chbxUseAccountServiceBankrupts.get_Checked();
     this.m_Request.PaymentOrderDate = this.m_OrderDate;
     this.m_Request.NeedServiceCollapse = Settings.Default.NeedServiceCollapse;
     this.m_Request.SubService = this.m_subService;
     this.m_Request.IsManualReturn = Settings.Default.CashierReturnMode;
     this.m_Request.DebtActionId = this.m_DebtActionId;
     this.m_Request.PaymentDate = this.m_PaymentDate;
     this.m_Request.SaveChanges();
     foreach (PayRequestServicePayAmount amount in this.m_Request.GetRequestServicePayAmounts())
     {
         amount.Delete();
     }
     ObjectList<PayRequestService> requestServices = this.m_ServicesSource.get_DataSource() as ObjectList<PayRequestService>;
     if ((requestServices != null) && !this.m_HouseHolderChanged)
     {
         this.FillPayRequestServicePayAmount(requestServices);
     }
     this.m_Request.ProcessRequest_Cash(this.m_IsFirstRequest);
     requestServices = this.m_ServicesSource.get_DataSource() as ObjectList<PayRequestService>;
     if ((requestServices != null) && this.m_HouseHolderChanged)
     {
         this.FillPayRequestServicePayAmount(requestServices);
         this.m_HouseHolderChanged = false;
     }
     this.m_Request = ObjectWithId.FindById<PayRequest>(this.m_Request.Id);
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:33,代码来源:ProcessPaymentView.cs

示例9: workerNotices_DoWork

 private void workerNotices_DoWork(object sender, DoWorkEventArgs e)
 {
     object[] objArray = e.get_Argument() as object[];
     if (objArray != null)
     {
         NoticeNotice.GenerateNotices((System.DateTime) objArray[0], (long) ((long) objArray[1]), (ObjectList<Organization>) objArray[2], (bool?) objArray[3], (bool) ((bool) objArray[4]), false);
     }
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:8,代码来源:PaymentNoticesMainFormOld.cs

示例10: workerExportPdf_DoWork

 private void workerExportPdf_DoWork(object sender, DoWorkEventArgs e)
 {
     char[] chArray2;
     int num12;
     int num13;
     object obj2;
     char[] invalidFileNameChars = System.IO.Path.GetInvalidFileNameChars();
     BackgroundWorker worker = sender as BackgroundWorker;
     NoticeExportPdfParams @params = e.get_Argument() as NoticeExportPdfParams;
     ObjectList<NoticeNotice> notices = @params.Notices;
     int num = 0;
     if (this.rbExportAccountNotices.get_Checked())
     {
         foreach (NoticeNotice notice in notices)
         {
             if (worker.get_CancellationPending())
             {
                 e.set_Cancel(true);
                 break;
             }
             string str2 = string.IsNullOrEmpty(notice.HouseHolderName) ? ((string) "Неизвестная УК") : notice.HouseHolderName;
             chArray2 = invalidFileNameChars;
             num12 = 0;
             while (num12 < chArray2.Length)
             {
                 char ch = chArray2[num12];
                 str2 = str2.Replace(ch, ' ');
                 num12 = (int) (num12 + 1);
             }
             str2 = str2.Trim();
             System.IO.DirectoryInfo info = new System.IO.DirectoryInfo(System.IO.Path.Combine(@params.PeriodDirectory.get_FullName(), str2));
             if (!info.get_Exists())
             {
                 info.Create();
             }
             ObjectList<NoticeNotice> list2 = new ObjectList<NoticeNotice>();
             list2.Add(notice);
             try
             {
                 using (System.Data.DataTable table = NoticeNotice.GetHeader(list2, this.cbHideClosedAccounts.get_Checked(), this.cbNoticeInformation.get_Checked()))
                 {
                     table.set_TableName("header");
                     using (System.Data.DataSet set = NoticeNotice.GetReport(list2, @params.NoticeTemplate.Sql))
                     {
                         if ((set.Tables.get_Count() < 2) || (set.Tables.get_Item(0).Rows.get_Count() == 0))
                         {
                             continue;
                         }
                         bool flag = false;
                         foreach (System.Data.DataRow row in table.Rows)
                         {
                             if (System.Convert.ToInt64(row.get_Item("id")) == notice.Id)
                             {
                                 foreach (System.Data.DataRow row2 in set.Tables.get_Item(0).Rows)
                                 {
                                     if (System.Convert.ToInt64(row2.get_Item("id")) == notice.Id)
                                     {
                                         flag = true;
                                         break;
                                     }
                                 }
                             }
                         }
                         if (!flag)
                         {
                             continue;
                         }
                         set.Tables.get_Item(0).set_TableName("pays");
                         set.Tables.get_Item(1).set_TableName("counter");
                         for (int i = 2; i < set.Tables.get_Count(); i = (int) (i + 1))
                         {
                             num13 = (int) (i - 1);
                             set.Tables.get_Item(i).set_TableName("data" + ((int) num13).ToString());
                         }
                         if (@params.NoticeTemplate.IdentityName == "Счет на оплату Ульяновск вариант 3")
                         {
                             if (set.Tables.get_Count() > 2)
                             {
                                 set.Tables.get_Item(2).set_TableName("organizations");
                             }
                             if (set.Tables.get_Count() > 3)
                             {
                                 set.Tables.get_Item(3).set_TableName("rates");
                             }
                         }
                         using (StiReport report = new StiReport())
                         {
                             report.LoadFromString(@params.NoticeTemplate.Template);
                             report.ReportCacheMode = StiReportCacheMode.Off;
                             report.Compile();
                             foreach (System.Data.DataTable table2 in set.Tables)
                             {
                                 report.RegData(table2.get_TableName(), (System.Data.DataTable) table2);
                             }
                             report.RegData("header", (System.Data.DataTable) table);
                             string accountNumber = notice.AccountNumber;
                             string str5 = System.IO.Path.Combine(info.get_FullName(), accountNumber);
                             if (System.IO.File.Exists(str5 + ".pdf"))
                             {
                                 int num5 = 1;
//.........这里部分代码省略.........
开发者ID:u4097,项目名称:SQLScript,代码行数:101,代码来源:PaymentNoticesMainFormOld.cs

示例11: bwLoadAddressesAndCounters_DoWork

 private void bwLoadAddressesAndCounters_DoWork(object sender, DoWorkEventArgs e)
 {
     e.set_Result(e.get_Argument());
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:4,代码来源:HousesBindingServicesView.cs


注:本文中的System.ComponentModel.DoWorkEventArgs.get_Argument方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。