コード例 #1
0
ファイル: FormControl.cs プロジェクト: windygu/School
 protected override void AssignFormControls()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     this.cboFeeGroup.SelectedItem      = (this.FormDto as Fac.FormDto).FeeGroupList.FindLast((p) => { return(p.Id == dto.FeeGroup.Id); });
     this.cboFeeDefinition.SelectedItem = (this.FormDto as Fac.FormDto).FeeDefinationList.FindLast((p) => { return(p.Id == dto.FeeDefination.Id); });
     this.cboStandard.SelectedItem      = (this.FormDto as Fac.FormDto).SchoolStandardList.FindLast((p) => { return(p.Id == dto.SchoolStandard.Id); });
     this.cboCategory.SelectedItem      = (this.FormDto as Fac.FormDto).CategoryList.FindLast((p) => { return(p.Id == dto.Category.Id); });
     this.txtAmount.Text = Convert.ToString(dto.Amount);
 }
コード例 #2
0
ファイル: FormControl.cs プロジェクト: windygu/School
 protected override void AssignDto()
 {
     Fac.Dto dto = base.FormDto.Dto as Fac.Dto;
     dto.FeeGroup       = this.cboFeeGroup.SelectedItem as Bil.Fee.Group.Dto;
     dto.FeeDefination  = this.cboFeeDefinition.SelectedItem as Bil.Fee.Definition.Dto;
     dto.SchoolStandard = this.cboStandard.SelectedItem as Sch.Standard.Dto;
     dto.Category       = this.cboCategory.SelectedItem as Stu.Category.Dto;
     dto.Amount         = Convert.ToDouble(this.txtAmount.Text);
 }
コード例 #3
0
ファイル: Server.cs プロジェクト: windygu/School
        public override void AssignData()
        {
            Dto dto = (base.FormDto as FormDto).Dto as Dto;

            Comp.Data data = base.ComponentData as Comp.Data;
            data.Amount         = dto.Amount;
            data.FeeGroup       = new Fac.Group.Server(null).Convert(dto.FeeGroup) as Comp.Group.Data;
            data.FeeDefination  = new Definition.Server(null).Convert(dto.FeeDefination) as Comp.Definition.Data;
            data.SchoolStandard = new SchFac.Standard.Server(null).Convert(dto.SchoolStandard) as SchComp.Standard.Data;
            data.Category       = new StuFac.Category.Server(null).Convert(dto.Category) as StuComp.Category.Data;
        }
コード例 #4
0
ファイル: Server.cs プロジェクト: windygu/School
        public override BinAff.Core.Data Convert(BinAff.Facade.Library.Dto dto)
        {
            Dto dt = dto as Dto;

            return(new Comp.Data
            {
                Id = dt.Id,
                Amount = dt.Amount,
                FeeGroup = new Fac.Group.Server(null).Convert(dt.FeeGroup) as Comp.Group.Data,
                FeeDefination = new Definition.Server(null).Convert(dt.FeeDefination) as Comp.Definition.Data,
                SchoolStandard = new SchFac.Standard.Server(null).Convert(dt.SchoolStandard) as SchComp.Standard.Data,
                Category = new StuFac.Category.Server(null).Convert(dt.Category) as StuComp.Category.Data,
                IsActive = dt.IsActive,
            });
        }