private void AddResource() { if (this.ViewState["ExcelName"] != null && !string.IsNullOrEmpty(this.ViewState["ExcelName"].ToString())) { this.dtRes = (this.ViewState["dtres"] as DataTable); if (this.dtRes.Rows.Count > 0) { BudTaskResourceServices budTaskResourceServices = new BudTaskResourceServices(this.dtRes, WebUtil.GetUserNames(base.UserCode)); budTaskResourceServices.AddConResource(this.resourceArray, this.inputUser, this.errors, this.prjId); } } }
protected void AddResource() { if (this.ViewState["ExcelName"] != null && !string.IsNullOrEmpty(this.ViewState["ExcelName"].ToString())) { this.dtRes = (this.ViewState["dtres"] as DataTable); if (this.dtRes.Rows.Count > 0) { BudTaskResourceServices budTaskResourceServices = new BudTaskResourceServices(this.dtRes, WebUtil.GetUserNames(base.UserCode)); budTaskResourceServices.AddResource(this.resourceArray, this.inputUser, this.errors, this.prjId, this.hfldIsWBSRelevance.Value.Trim(), ConfigHelper.Get("ResNoteSep")[0]); } } }