Esempio n. 1
0
    private string getSoftTypename(string typeID)
    {
        int ID = 0;

        if (typeID != null && typeID != "")
        {
            ID = Convert.ToInt32(typeID);
        }
        List <Call_Category> ccList = new List <Call_Category>();

        HYTD.BLL.Call_CategoryBLL ccbll = new HYTD.BLL.Call_CategoryBLL();
        ccList = ccbll.GetCall_CategoryList().Where(c => c.C_ID == ID).ToList();
        return(ccList.Count() > 0? ccList[0].C_Name.ToString():"");
    }
Esempio n. 2
0
    public static string getCallCategory(bool blnIsAll, bool blnIsLine, int CID)
    {
        List <Call_Category> ccList = new List <Call_Category>();

        HYTD.BLL.Call_CategoryBLL ccbll = new HYTD.BLL.Call_CategoryBLL();
        ccList = ccbll.GetCall_CategoryList().Where(c => c.C_Type == 0).ToList();
        string str = string.Empty;

        if (blnIsAll)
        {
            str = string.Format("<option  value=\"{0}\">{1}</option>", PublicConst.PUBLICSTATUSALL_VALUE, "全部");
        }
        if (blnIsLine)
        {
            str = string.Format("<option  value=\"{0}\">{1}</option>", PublicConst.PUBLICSTATUSLINE_VALUE, "请选择");
        }
        return(MakeTree(ccList, CID, "C_FID", "0", "C_ID", "C_Name", str, -1));
    }