You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Configuration;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Web;
|
|
|
|
|
using System.Web.Security;
|
|
|
|
|
using System.Web.UI;
|
|
|
|
|
using System.Web.UI.HtmlControls;
|
|
|
|
|
using System.Web.UI.WebControls;
|
|
|
|
|
using System.Web.UI.WebControls.WebParts;
|
|
|
|
|
using DSWeb.EntityDA;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.FeeCodes
|
|
|
|
|
{
|
|
|
|
|
public partial class AttributeService : System.Web.UI.Page
|
|
|
|
|
{
|
|
|
|
|
private string strHandle;
|
|
|
|
|
private string strCompanyID;//公司GID
|
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
if (Session["COMPANYID"] != null)
|
|
|
|
|
{
|
|
|
|
|
strCompanyID = Session["COMPANYID"].ToString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (Request.QueryString["handle"] != null)
|
|
|
|
|
{
|
|
|
|
|
strHandle = Request.QueryString["handle"].ToString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (strHandle != null)
|
|
|
|
|
{
|
|
|
|
|
if (strHandle == "getinvoicerename")
|
|
|
|
|
{
|
|
|
|
|
Response.Write(GetAttribute(RequestAttributeType.INVOICEAPPRENAME));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string GetAttribute(RequestAttributeType tempRequestAttributeType)
|
|
|
|
|
{
|
|
|
|
|
string strResult = "";
|
|
|
|
|
switch (tempRequestAttributeType)
|
|
|
|
|
{
|
|
|
|
|
case RequestAttributeType.INVOICEAPPRENAME:
|
|
|
|
|
strResult = new CompanyAttributeDA().GetCompanyAttributeValue(strCompanyID, "refSubCompanyInvoiceTotalName");
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return strResult;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum RequestAttributeType
|
|
|
|
|
{
|
|
|
|
|
INVOICEAPPRENAME = 0
|
|
|
|
|
}
|
|
|
|
|
}
|