/// <summary> /// 删除总账科目 /// </summary> /// <param name="id">总账科目标识</param> /// <returns></returns> public string DelLedgerAcc(string id) { bool result = new AccountSvc().DelLedgerAcc(id); string msg = result ? General.Resource.Common.Success : General.Resource.Common.Failed; return(string.Format("{{\"Result\":{0},\"Msg\":\"{1}\"}}" , result.ToString().ToLower(), msg)); }
/// <summary> /// 删除明细科目 /// </summary> /// <param name="id">明细科目标识</param> /// <returns></returns> public string DelDetailedAccount(string id) { bool result = new AccountSvc().DelDetailedAccount(id); string msg = string.Empty; if (result) { msg = General.Resource.Common.Success; } else { msg = General.Resource.Common.Failed; } return(string.Format("{{\"Result\":{0},\"Msg\":\"{1}\"}}" , result.ToString().ToLower(), msg)); }
/// <summary> /// 更新使用的总账科目 /// </summary> /// <param name="accCodes">总账科目代码串</param> /// <returns></returns> public string UpdUsingLedgerAcc(string accCodes) { bool result = new AccountSvc().UpdUsingLedgerAcc(accCodes.Trim(','), Session["CurrentCompanyGuid"].ToString()); string msg = string.Empty; if (result) { msg = General.Resource.Common.Success; } else { msg = General.Resource.Common.Failed; } return(string.Format("{{\"Result\":{0},\"Msg\":\"{1}\"}}" , result.ToString().ToLower(), msg)); }
public string AddSubject(string strParentID, int AccCode, string Name, string Subject) { bool result = false; string msg = string.Empty; result = new AccountSvc().AddSubject(strParentID, AccCode, Name, Subject, Session["CurrentCompanyGuid"].ToString()); if (result) { msg = General.Resource.Common.Success; } else { msg = General.Resource.Common.Failed; } return(string.Format("{{\"Result\":{0},\"Msg\":\"{1}\"}}" , result.ToString().ToLower(), msg)); }