예제 #1
0
        public string get_xfdr(string xrbh_0)
        {
            string xfdr_0 = "";

            BLL.Xxfxr B_Xxfxr = new Hotel_app.BLL.Xxfxr();
            DataSet   DS_temp = B_Xxfxr.GetList("xrbh='" + xrbh + "'");

            if (DS_temp != null && DS_temp.Tables[0].Rows.Count > 0)
            {
                xfdr_0 = DS_temp.Tables[0].Rows[0]["xfdr"].ToString();
            }
            DS_temp.Dispose();
            return(xfdr_0);
        }
예제 #2
0
        public void GenerateChildNodes(TreeNode tn)
        {
            string[] info      = tn.Tag.ToString().Split('|');
            string   drbh_temp = info[0].Split(':')[1];

            //由drbh加载消费小类
            ds_temp_xfxr = B_Xxfxr.GetList("id>=0  " + common_file.common_app.yydh_select + "  and  drbh='" + drbh_temp + "'");
            if (ds_temp_xfxr != null && ds_temp_xfxr.Tables[0].Rows.Count > 0)
            {
                for (int i = 0; i < ds_temp_xfxr.Tables[0].Rows.Count; i++)
                {
                    TreeNode tn_childnode = new TreeNode();
                    tn_childnode.Text = ds_temp_xfxr.Tables[0].Rows[i]["xfxr"].ToString();
                    tn_childnode.Name = "消费小类:" + tn_childnode.Text;
                    tn_childnode.Tag  = (object)("消费小类:" + ds_temp_xfxr.Tables[0].Rows[i]["xrbh"].ToString() + "|" + tn_childnode.Text);
                    Tv_Xfxm.Nodes[tn.Name].Nodes.Add(tn_childnode);
                }
            }
        }