Beispiel #1
0
        //读取本地企业信息
        public static string Getqyxx(int typeid)
        {
            string strQyxx = "";

            Model.Xqyxx M_qyxx = new Model.Xqyxx();
            BLL.Xqyxx   B_qyxx = new BLL.Xqyxx();
            M_qyxx = B_qyxx.GetModelList("1=1")[0];
            if (typeid == 1)
            {
                strQyxx = M_qyxx.yydh;
            }
            else if (typeid == 2)
            {
                strQyxx = M_qyxx.qymc;
            }
            else if (typeid == 3)
            {
                strQyxx = M_qyxx.qybh;
            }
            else if (typeid == 4)
            {
                strQyxx = M_qyxx.hyjfrx;
            }
            else
            {
                strQyxx = M_qyxx.yydh;
            }
            return(strQyxx);
        }
Beispiel #2
0
        //打印公共信息
        public static void GetPrintInfo(ref string qymc, ref string qymc_english, ref string Address_chinese, ref string Address_english, ref string qydh, ref string qycz, ref string qyyb, ref string website)
        {
            BLL.Xqyxx          B_Xqyxx = new Hotel_app.BLL.Xqyxx();
            List <Model.Xqyxx> lists   = B_Xqyxx.GetModelList("");

            if (lists.Count > 0)
            {
                Model.Xqyxx M_Xqyxx = lists[0];
                qymc            = M_Xqyxx.qymc;
                qymc_english    = M_Xqyxx.qydzyw;
                Address_chinese = M_Xqyxx.qydz;
                Address_english = M_Xqyxx.qydzyw;
                qydh            = M_Xqyxx.qydh;
                qycz            = M_Xqyxx.qycz;
                qyyb            = "361000";
                website         = M_Xqyxx.wz;
            }
            else
            {
                qymc            = "";
                qymc_english    = "";
                Address_chinese = "";
                Address_english = "";
                qydh            = "";
                qycz            = "";
                qyyb            = "";
                website         = "";
            }
        }
Beispiel #3
0
        public static string Get_QyInfo(string info_item)
        {
            string info = "";

            BLL.Xqyxx          B_Xqyxx = new Hotel_app.BLL.Xqyxx();
            List <Model.Xqyxx> lists   = B_Xqyxx.GetModelList("");

            if (lists.Count > 0)
            {
                Model.Xqyxx M_Xqyxx = lists[0];
                if (info_item == "qymc")
                {
                    info = M_Xqyxx.qymc;
                }
                if (info_item == "yydh")
                {
                    info = M_Xqyxx.yydh;
                }
                if (info_item == "qybh")
                {
                    info = M_Xqyxx.qybh;
                }
            }
            else
            {
                info = "000000";
            }
            return(info);
        }