protected void OpenForm(int formID) { FormTableAdapter taForm = new FormTableAdapter(); taForm.FillByID(this.InnerDS.Form, formID); FormDS.FormRow rowForm = this.InnerDS.Form[0]; FormMaterialTableAdapter taFormMaterial = new FormMaterialTableAdapter(); taFormMaterial.FillByID(this.InnerDS.FormMaterial, formID); FormDS.FormMaterialRow rowFormMaterial = this.InnerDS.FormMaterial[0]; //赋值 this.UCShop.ShopID = rowFormMaterial.ShopID.ToString(); this.FirstVolumeCtl.Text = rowFormMaterial.FirstVolume.ToString(); this.SecondVolumeCtl.Text = rowFormMaterial.SecondVolume.ToString(); this.ThirdVolumeCtl.Text = rowFormMaterial.ThirdVolume.ToString(); this.RemarkCtl.Text = rowFormMaterial.Remark; // 打开明细表 FormMaterialDetailTableAdapter taDetail = new FormMaterialDetailTableAdapter(); taDetail.FillByFormMaterialID(this.InnerDS.FormMaterialDetail, formID); }
protected void OpenForm(int formID) { FormTableAdapter taForm = new FormTableAdapter(); taForm.FillByID(this.InnerDS.Form, formID); FormDS.FormRow rowForm = this.InnerDS.Form[0]; FormMaterialTableAdapter taFormMaterial = new FormMaterialTableAdapter(); taFormMaterial.FillByID(this.InnerDS.FormMaterial, formID); FormDS.FormMaterialRow rowFormMaterial = this.InnerDS.FormMaterial[0]; //��ֵ this.UCShop.ShopID = rowFormMaterial.ShopID.ToString(); this.FirstVolumeCtl.Text = rowFormMaterial.FirstVolume.ToString(); this.SecondVolumeCtl.Text = rowFormMaterial.SecondVolume.ToString(); this.ThirdVolumeCtl.Text = rowFormMaterial.ThirdVolume.ToString(); this.RemarkCtl.Text = rowFormMaterial.Remark; // ����ϸ�� FormMaterialDetailTableAdapter taDetail = new FormMaterialDetailTableAdapter(); taDetail.FillByFormMaterialID(this.InnerDS.FormMaterialDetail, formID); }