Beispiel #1
0
 public static DebtActionStatus DebtActionStatusIsNull()
 {
     Null = new DebtActionStatus();
     Null.Id = 0L;
     Null.Name = "<не выбрано>";
     Null.Created = System.DateTime.Now;
     return Null;
 }
 protected override ObjectWithId Add(DataTransferObject dto)
 {
     DebtActionStatus status = new DebtActionStatus {
         Name = this.tbName.get_Text(),
         Created = System.DateTime.Now
     };
     status.SaveChanges(dto);
     return status;
 }
 private void sfdStatusType_SelectedIndexChanged(object sender, System.EventArgs e)
 {
     DebtActionStatus status = new DebtActionStatus();
     status = (DebtActionStatus) this.sfdStatusType.get_SelectedItem();
     new ObjectList<DebtActionStatusContent>();
     System.Collections.Generic.IList<FasetItem> list = FasetItem.FindByFasetIdWithDebt((int) ((int) status.Id), true);
     if (status.Id != 0L)
     {
         this.sfdStatus.Items.Clear();
         this.sfdStatus.set_Enabled(true);
         foreach (FasetItem item in list)
         {
             this.sfdStatus.Items.Add(item);
         }
         if (this.sfdStatus.Items.get_Count() != 0)
         {
             this.sfdStatus.set_SelectedItem(this.sfdStatus.Items.get_Item(0));
         }
     }
     else
     {
         this.sfdStatus.set_Enabled(false);
     }
 }
 protected override void Fill(ObjectWithId obj)
 {
     this.status = (DebtActionStatus) obj;
     this.fillStatusContent();
     this.bsAllActionStatusContents.set_DataSource(this.availableStatusContent);
     this.bsAvailableActionStatusContents.set_DataSource(this.allStatusContent);
 }