public override int Add() { tmiQuery.Visible = false; tmiDelete.Visible = false; tmiModify.Visible = false; tmiAdd.Visible = false; tmiSave.Visible = true; tmiCancel.Visible = true; panel1.Enabled = true; txtcode.Text = string.Empty; dtpoccurDate.Value = DateTime.Now; txtEventName.Text = string.Empty; txtSolvTtheProblem.Text = string.Empty; txtRemarks.Text = string.Empty; txtContractNo.Text = string.Empty; txtFishMealId.Text = string.Empty; if (getname != "") { FishBll.Bll.SalerequisitionBll _bll1 = new FishBll.Bll.SalerequisitionBll(); FishEntity.SalesRequisitionEntity _fish1 = new FishEntity.SalesRequisitionEntity(); _fish1 = _bll1.Getname(getname); if (_fish1 != null) { txtCodeOdd.Text = _fish1.code; txtNumbering.Text = _fish1.Numbering; txtFishMealId.Text = _fish1.Product_id; } } return(1); }
public override int Add() { panel1.Enabled = true; tmiSave.Visible = true; tmiClose.Visible = true; tmiCancel.Visible = true; tmiDelete.Visible = false; tmiReview.Visible = false; tmiAdd.Visible = false; tmiModify.Visible = false; tmiQuery.Visible = false; txtcode.Text = string.Empty; txtsponsor.Text = FishEntity.Variable.User.username; txtacceptor.Text = string.Empty; txtprocessresult.Text = string.Empty; txtevaluation.Text = string.Empty; txtattendance.Text = string.Empty; txtreview.Text = string.Empty; txtremarks.Text = string.Empty; txtConfirmTheWeight.Text = string.Empty; if (getname != "") { FishBll.Bll.SalerequisitionBll getbll = new FishBll.Bll.SalerequisitionBll(); FishEntity.SalesRequisitionEntity _fish1 = new FishEntity.SalesRequisitionEntity(); _fish1 = getbll.Getname(getname); if (_fish1 != null) { txtNumbering.Text = _fish1.Numbering; txtCodeOdd.Text = _fish1.code; } } return(1); }
public override int Add() { panel1.Enabled = true; tmiSave.Visible = true; tmiClose.Visible = true; tmiCancel.Visible = true; tmiDelete.Visible = false; tmiReview.Visible = false; tmiAdd.Visible = false; tmiModify.Visible = false; tmiQuery.Visible = false; txtcode.Text = string.Empty; txtremarks.Text = string.Empty; txtConfirmTheWeight.Text = string.Empty; if (getname != "") { FishBll.Bll.SalerequisitionBll getbll = new FishBll.Bll.SalerequisitionBll(); FishEntity.SalesRequisitionEntity _fish1 = new FishEntity.SalesRequisitionEntity(); _fish1 = getbll.Getname(getname); if (_fish1 != null) { txtNumbering.Text = _fish1.Numbering; txtCodeOdd.Text = _fish1.code; txtFishMealId.Text = _fish1.Product_id; } } return(1); }