Exemplo n.º 1
0
    protected void OpenForm(int formID)
    {
        FormTableAdapter taForm = new FormTableAdapter();

        taForm.FillByID(this.InnerDS.Form, formID);
        FormDS.FormRow rowForm = this.InnerDS.Form[0];
        FormBudgetAllocationTableAdapter taFormBudgetAllocation = new FormBudgetAllocationTableAdapter();

        taFormBudgetAllocation.FillByID(this.InnerDS.FormBudgetAllocation, formID);
        FormDS.FormBudgetAllocationRow rowFormBudgetAllocation = this.InnerDS.FormBudgetAllocation[0];
        //赋值
        if (!rowFormBudgetAllocation.IsRemarkNull())
        {
            this.RemarkCtl.Text = rowFormBudgetAllocation.Remark;
        }
        if (!rowFormBudgetAllocation.IsAttachFileNameNull())
        {
            this.UCFileUpload.AttachmentFileName = rowFormBudgetAllocation.AttachFileName;
        }
        if (!rowFormBudgetAllocation.IsRealAttachFileNameNull())
        {
            this.UCFileUpload.RealAttachmentFileName = rowFormBudgetAllocation.RealAttachFileName;
        }

        // 打开明细表
        FormBudgetAllocationDetailTableAdapter taDetail = new FormBudgetAllocationDetailTableAdapter();

        taDetail.FillByFormID(this.InnerDS.FormBudgetAllocationDetail, formID);
    }
Exemplo n.º 2
0
    protected void OpenForm(int formID)
    {
        FormTableAdapter taForm = new FormTableAdapter();
        taForm.FillByID(this.InnerDS.Form, formID);
        FormDS.FormRow rowForm = this.InnerDS.Form[0];
        FormBudgetAllocationTableAdapter taFormBudgetAllocation = new FormBudgetAllocationTableAdapter();
        taFormBudgetAllocation.FillByID(this.InnerDS.FormBudgetAllocation, formID);
        FormDS.FormBudgetAllocationRow rowFormBudgetAllocation = this.InnerDS.FormBudgetAllocation[0];
        //��ֵ
        if (!rowFormBudgetAllocation.IsRemarkNull()) {
            this.RemarkCtl.Text = rowFormBudgetAllocation.Remark;
        }
        if (!rowFormBudgetAllocation.IsAttachFileNameNull()) {
            this.UCFileUpload.AttachmentFileName = rowFormBudgetAllocation.AttachFileName;
        }
        if (!rowFormBudgetAllocation.IsRealAttachFileNameNull()) {
            this.UCFileUpload.RealAttachmentFileName = rowFormBudgetAllocation.RealAttachFileName;
        }

        // ����ϸ��
        FormBudgetAllocationDetailTableAdapter taDetail = new FormBudgetAllocationDetailTableAdapter();
        taDetail.FillByFormID(this.InnerDS.FormBudgetAllocationDetail, formID);
    }