private bool UpdateData(long pk) { GOV_TC_DB_COMPANYDATADZ_Bll bll = new GOV_TC_DB_COMPANYDATADZ_Bll(); GOV_TC_DB_COMPANYDATADZ_Model model = bll.GetModel(pk); this.GetModel(ref model); return bll.Update(model); }
private bool CreateData() { GOV_TC_DB_COMPANYDATADZ_Bll bll = new GOV_TC_DB_COMPANYDATADZ_Bll(); GOV_TC_DB_COMPANYDATADZ_Model model = null; this.GetModel(ref model); return bll.Add(model); }
private void ShowInfo(long PK) { GOV_TC_DB_COMPANYDATADZ_Model model = new GOV_TC_DB_COMPANYDATADZ_Bll().GetModel(PK); this.dllDATANAME.SelectedValue = model.DATANAME; this.txtCOMPANYBH.Value = model.COMPANYBH; this.lblCOMPANYBH.Value = model.COMPANYNAME; }
private void Bind() { DataSet sQLDataName = new GOV_TC_DB_COMPANYDATADZ_Bll().GetSQLDataName(); if ((sQLDataName != null) && (sQLDataName.Tables.Count > 0)) { this.dllDATANAME.DataSource = sQLDataName.Tables[0]; this.dllDATANAME.DataTextField = "ztmc"; this.dllDATANAME.DataValueField = "dbname"; this.dllDATANAME.DataBind(); } }