Esempio n. 1
0
        public void selectFamily(string person)
        {
            personal_familyModel fm   = new personal_familyModel();
            districtModel        dis  = new districtModel();
            amphurModel          amp  = new amphurModel();
            provinceModel        prov = new provinceModel();

            fm.selectFamilyPerson(person);

            ViewData["d_name"]          = fm.fam_name_dad;
            ViewData["d_last"]          = fm.fam_lastname_dad;
            ViewData["d_age"]           = fm.fam_age_dad;
            ViewData["d_num"]           = fm.fam_num_dad;
            ViewData["d_moo"]           = fm.fam_moo_dad;
            ViewData["d_province"]      = prov.selectProvince_forEdit(fm.fam_province_dad);
            ViewData["d_amphur"]        = amp.select_amphur_forEdit(fm.fam_amphur_dad);
            ViewData["d_district"]      = dis.select_district_forEdit(fm.fam_district_dad);
            ViewData["d_postcode"]      = fm.fam_postcode_dad;
            ViewData["d_tel"]           = fm.fam_tel_dad;
            ViewData["d_mobile"]        = fm.fam_mobile_dad;
            ViewData["d_province_name"] = fm.province_name_dad;
            ViewData["d_amphur_name"]   = fm.amphur_name_dad;
            ViewData["d_district_name"] = fm.district_name_dad;

            ViewData["m_name"]          = fm.fam_name_mom;
            ViewData["m_last"]          = fm.fam_lastname_mom;
            ViewData["m_age"]           = fm.fam_age_mom;
            ViewData["m_num"]           = fm.fam_num_mom;
            ViewData["m_moo"]           = fm.fam_moo_mom;
            ViewData["m_province"]      = prov.selectProvince_forEdit(fm.fam_province_mom);
            ViewData["m_amphur"]        = amp.select_amphur_forEdit(fm.fam_amphur_mom);
            ViewData["m_district"]      = dis.select_district_forEdit(fm.fam_district_mom);
            ViewData["m_postcode"]      = fm.fam_postcode_mom;
            ViewData["m_tel"]           = fm.fam_tel_mom;
            ViewData["m_mobile"]        = fm.fam_mobile_mom;
            ViewData["m_province_name"] = fm.province_name_mom;
            ViewData["m_amphur_name"]   = fm.amphur_name_mom;
            ViewData["m_district_name"] = fm.district_name_mom;

            ViewData["h_name"]          = fm.fam_name_marry;
            ViewData["h_last"]          = fm.fam_lastname_marry;
            ViewData["h_age"]           = fm.fam_age_marry;
            ViewData["h_num"]           = fm.fam_num_marry;
            ViewData["h_moo"]           = fm.fam_moo_marry;
            ViewData["h_province"]      = prov.selectProvince_forEdit(fm.fam_province_marry);
            ViewData["h_amphur"]        = amp.select_amphur_forEdit(fm.fam_amphur_marry);
            ViewData["h_district"]      = dis.select_district_forEdit(fm.fam_district_marry);
            ViewData["h_postcode"]      = fm.fam_postcode_marry;
            ViewData["h_tel"]           = fm.fam_tel_marry;
            ViewData["h_mobile"]        = fm.fam_mobile_marry;
            ViewData["h_province_name"] = fm.province_name_marry;
            ViewData["h_amphur_name"]   = fm.amphur_name_marry;
            ViewData["h_district_name"] = fm.district_name_marry;
        }
Esempio n. 2
0
        public void selectAddressPerson(string person)
        {
            AddressModel  add  = new AddressModel();
            districtModel dis  = new districtModel();
            amphurModel   amp  = new amphurModel();
            provinceModel prov = new provinceModel();

            add.selectAddressPerson(person);

            ViewData["add_num"]            = add.address_num;
            ViewData["add_moo"]            = add.address_moo;
            ViewData["add_type"]           = add.address_type;
            ViewData["add_type_name"]      = add.address_type_name;
            ViewData["add_name"]           = add.address_name;
            ViewData["add_alley"]          = add.address_alley;
            ViewData["add_road"]           = add.address_road;
            ViewData["add_district"]       = dis.select_district_forEdit(add.address_district_id);
            ViewData["add_district_name"]  = add.address_district_name;
            ViewData["add_amphur"]         = amp.select_amphur_forEdit(add.address_amphur_id);
            ViewData["add_amphur_name"]    = add.address_amphur_name;
            ViewData["add_province"]       = prov.selectProvince_forEdit(add.address_province_id);
            ViewData["add_province_name"]  = add.address_province_name;
            ViewData["add_postcode"]       = add.address_postcode;
            ViewData["call_num"]           = add.address_num_call;
            ViewData["call_moo"]           = add.address_moo_call;
            ViewData["call_type"]          = add.address_type_call;
            ViewData["call_type_name"]     = add.address_type_name_call;
            ViewData["call_name"]          = add.address_name_call;
            ViewData["call_alley"]         = add.address_alley_call;
            ViewData["call_road"]          = add.address_road_call;
            ViewData["call_district"]      = dis.select_district_forEdit(add.address_district_id_call);
            ViewData["call_district_name"] = add.address_district_name_call;
            ViewData["call_amphur"]        = amp.select_amphur_forEdit(add.address_amphur_id_call);
            ViewData["call_amphur_name"]   = add.address_amphur_name_call;
            ViewData["call_province"]      = prov.selectProvince_forEdit(add.address_province_id_call);
            ViewData["call_province_name"] = add.address_province_name_call;
            ViewData["call_postcode"]      = add.address_postcode_call;
        }