Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        base.AllowHttpMethod("POST");
        base.DisableTop(true);

        ViewPower   = base.GetPower(PowerList[0]);
        UpdatePower = base.GetPower(PowerList[1]);

        if (this.IsPostBack == false)
        {
            var codes = SystemCode.dict["CodeM_SchoolCode_EnableState"];

            ddEnState.Items.Add(new ListItem("請選擇", "0"));
            foreach (var item in codes)
            {
                ddEnState.Items.Add(new ListItem(item.EnumName, item.EnumValue.ToString()));
            }

            ddEnState.SelectedValue = "0";

            CountyJson  = JsonConvert.SerializeObject(SystemAreaCode.GetCountyList());
            TownJson    = JsonConvert.SerializeObject(SystemAreaCode.GetTownList(County));
            VillageJson = JsonConvert.SerializeObject(SystemAreaCode.GetVillageList(Town));
        }
    }
Example #2
0
    /// <summary>
    /// 轄區所屬County
    /// </summary>
    /// <param name="OrgID"></param>
    /// <returns></returns>
    public static List <SystemAreaCodeVM> GetRegionCountyList(int OrgID)
    {
        List <SystemAreaCodeVM> list = SystemAreaCode.GetCountyList();

        SystemOrgVM OrgVM = SystemOrg.GetVM(OrgID);

        //判斷是哪種level
        if (OrgVM.OrgLevel == 4)  //衛生所
        {
            List <int> RegionCountyIDs          = new List <int>();
            List <SystemOrgRegionVM> RegionList = GetOrgRegion(OrgID);

            foreach (SystemOrgRegionVM r in RegionList)
            {
                List <SystemRegionSettingVM> SettingList = GetOrgRegionSetting(r.RegionID);
                foreach (SystemRegionSettingVM s in SettingList)
                {
                    RegionCountyIDs.Add(s.CountyID);
                }
            }

            list = list.Where(ac => RegionCountyIDs.Contains(ac.ID)).ToList();
        }
        else
        if (OrgVM.OrgLevel == 3 || OrgVM.OrgLevel == 2)    //衛生局 管制中心
        {
            List <SystemOrgRegionCountyVM> CountyList = GetOrgRegionCounty(OrgID);
            List <int> RegionCountyIDs = new List <int>();
            foreach (SystemOrgRegionCountyVM rc in CountyList)
            {
                RegionCountyIDs.Add(rc.CountyID);
            }
            list = list.Where(ac => RegionCountyIDs.Contains(ac.ID)).ToList();
        }
        //level 1全部


        return(list);
    }
Example #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ViewPower   = base.GetPower(PowerList[0]);
        UpdatePower = base.GetPower(PowerList[1]);

        base.AllowHttpMethod("GET", "POST");
        base.DisableTop(true);
        base.BodyClass = "class='bodybg'";

        int.TryParse(Request["i"], out ID);

        if (ID == 0)
        {
            string script = "<script>alert('資料取得失敗');history.go(-1);</script>";
            Page.ClientScript.RegisterClientScriptBlock(this.Page.GetType(), "alert", script, false);
            return;
        }

        if (UpdatePower.HasPower == false)
        {
            tbAddress.Enabled = false;
            tbTel.Enabled     = false;
            tbVaccine.Enabled = false;
            ddAgState.Enabled = false;
            //tbDepartment.Enabled = false;
        }

        if (this.IsPostBack == false)
        {
            DataSet ds = new DataSet();

            using (SqlConnection sc = new SqlConnection(WebConfigurationManager.ConnectionStrings["ConnDB"].ToString()))
            {
                using (SqlCommand cmd = new SqlCommand("dbo.usp_ParameterM_xGetAgencyByID", sc))
                {
                    cmd.CommandType = CommandType.StoredProcedure;
                    cmd.Parameters.AddWithValue("@AgencyInfoID", ID);
                    using (SqlDataAdapter da = new SqlDataAdapter(cmd))
                    {
                        sc.Open();
                        da.Fill(ds);
                    }
                }
            }


            AgencyInfoVM        VM   = new AgencyInfoVM();
            List <AddVaccineVM> list = new List <AddVaccineVM>();

            EntityS.FillModel(VM, ds.Tables[0]);
            EntityS.FillModel(list, ds.Tables[1]);


            var dict = SystemCode.GetDict("LocationSettingM_Divisions");

            StateListAry = JsonConvert.SerializeObject(dict);

            var codes = SystemCode.dict["ParameterM_LocationSetting_AgencyState"];

            ddAgState.Items.Add(new ListItem("請選擇", "0"));
            foreach (var item in codes)
            {
                ddAgState.Items.Add(new ListItem(item.EnumName, item.EnumValue.ToString()));
            }

            ddAgState.SelectedValue = VM.AgencyState.ToString();
            lblBsState.Text         = VM.BusinessStateString;
            //tbDepartment.Text = VM.Department;

            County  = VM.AgencyCounty;
            Town    = VM.AgencyTown;
            Village = VM.AgencyVillage;



            tbAddress.Text  = VM.AgencyAddress;
            tbTel.Text      = VM.AgencyPhoneNumber;
            tbSchedule.Text = VM.InoculationSchedule;

            lblName.Text  = VM.AgencyName;
            lblCode.Text  = VM.AgencyCode;
            tbOrg.Text    = VM.OrgName;
            hfOrgID.Value = VM.OrgID.ToString();
            //tbDepartment.Text = VM.Department;

            tbVaccine.Text = string.Join(",", list.Select(item => item.VaccineCName));
            tbOther        = VM.DepartmentOther;
            switch (VM.ReportingType)
            {
            case 1:
                rb1.Checked = true;
                break;

            case 2:
                rb2.Checked = true;
                break;

            case 3:
                rb3.Checked = true;
                break;
            }

            if (VM.IsSimpleFlu == false)
            {
                rbB1.Checked = true;
            }
            else
            {
                rbB2.Checked = true;
            }
            tbOtherIDs  = VM.DepartmentIDs;
            CountyJson  = JsonConvert.SerializeObject(SystemAreaCode.GetCountyList());
            TownJson    = JsonConvert.SerializeObject(SystemAreaCode.GetTownList(County));
            VillageJson = JsonConvert.SerializeObject(SystemAreaCode.GetVillageList(Town));
        }
    }
Example #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        base.AllowHttpMethod("POST");
        base.DisableTop(true);

        ViewPower   = base.GetPower(PowerList[0]);
        UpdatePower = base.GetPower(PowerList[1]);

        ElementarySchoolID = GetNumber <int>("i");

        if (ElementarySchoolID == 0)
        {
            IsValid = false;
            string script = "<script>alert('資料取得失敗');history.go(-1);</script>";
            Page.ClientScript.RegisterClientScriptBlock(this.Page.GetType(), "alert", script, false);
            return;
        }
        if (this.IsPostBack == false)
        {
            uc1.TableName = "O_OrgLog";
            uc1.WhereDict = new Dictionary <string, object>()
            {
                { "@OrgID", ID }
            };

            DataTable dt = GetDataTable("ConnDB", "dbo.usp_CodeM_xGetElementarySchoolByID"
                                        , new Dictionary <string, object>()
            {
                { "@ElementarySchoolID", ElementarySchoolID }
            });
            SchoolCodeVM VM = new SchoolCodeVM();
            EntityS.FillModel(VM, dt);

            tbName.Text    = VM.SchoolName;
            tbCode.Text    = VM.SchoolCode;
            tbTel.Text     = VM.SchoolPhoneNumber;
            tbAddress.Text = VM.SchoolAddress;

            County  = VM.SchoolCounty;
            Town    = VM.SchoolTown;
            Village = VM.SchoolVillage;

            CountyName  = SystemAreaCode.GetName(VM.SchoolCounty);
            TownName    = SystemAreaCode.GetName(VM.SchoolTown);
            VillageName = SystemAreaCode.GetName(VM.SchoolVillage);

            var codes = SystemCode.dict["CodeM_SchoolCode_EnableState"];

            ddEnState.Items.Add(new ListItem("請選擇", "0"));
            foreach (var item in codes)
            {
                ddEnState.Items.Add(new ListItem(item.EnumName, item.EnumValue.ToString()));
            }

            ddEnState.SelectedValue = VM.EnableState.ToString();

            CountyJson  = JsonConvert.SerializeObject(SystemAreaCode.GetCountyList());
            TownJson    = JsonConvert.SerializeObject(SystemAreaCode.GetTownList(County));
            VillageJson = JsonConvert.SerializeObject(SystemAreaCode.GetVillageList(Town));
        }
    }
    protected new void Page_Load(object sender, EventArgs e)
    {
        base.AllowHttpMethod("POST");
        base.DisableTop(true);

        ViewPower   = base.GetPower(PowerList[0]);
        UpdatePower = base.GetPower(PowerList[1]);

        //if (UpdatePower.HasPower)
        //{
        //    form1.DefaultButton = "btnSave";
        //}

        ID         = GetNumber <int>("i");
        ContractID = GetNumber <int>("i2");

        if (ID == 0)
        {
            IsValid = false;
            string script = "<script>alert('資料取得失敗');history.go(-1);</script>";
            Page.ClientScript.RegisterClientScriptBlock(this.Page.GetType(), "alert", script, false);
            return;
        }

        if (UpdatePower.HasPower == false)
        {
            tbAddress.Enabled  = false;
            tbTel.Enabled      = false;
            tbVaccine.Enabled  = false;
            ddlAgState.Enabled = false;
            //tbDepartment.Enabled = false;
        }
        if (this.IsPostBack == false)
        {
            uc1.TableName = "O_OrgLog";
            uc1.WhereDict = new Dictionary <string, object>()
            {
                { "@OrgID", ID }
            };

            DataSet ds = MSDB.GetDataSet("ConnDB", "dbo.usp_ParameterM_xGetAgencyByID"
                                         , new Dictionary <string, object>()
            {
                { "@AgencyInfoID", ID }
            });

            AgencyInfoVM        VM        = new AgencyInfoVM();
            List <AddVaccineVM> list      = new List <AddVaccineVM>();
            OrgContractVM       VM2       = new OrgContractVM();
            List <DayTimeVM>    ddListIn  = new List <DayTimeVM>();
            List <DayTimeVM>    ddListOut = new List <DayTimeVM>();
            EntityS.FillModel(VM, ds.Tables[0]);
            EntityS.FillModel(list, ds.Tables[1]);
            EntityS.FillModel(VM2, ds.Tables[2]);
            EntityS.FillModel(ddListIn, ds.Tables[3]);

            foreach (var item in ddListIn)
            {
                DayTimeVM inVM = new DayTimeVM();
                inVM.ID        = item.ID;
                inVM.Monday    = item.Monday;
                inVM.Tuesday   = item.Tuesday;
                inVM.Wednesday = item.Wednesday;
                inVM.Thursday  = item.Thursday;
                inVM.Friday    = item.Friday;
                inVM.Saturday  = item.Saturday;
                inVM.Sunday    = item.Sunday;
                inVM.TimeAry   = new List <Dictionary <string, string> >();
                foreach (DataRow dr in ds.Tables[4].Rows)
                {
                    if (item.ID == Convert.ToInt32(dr["BusinesssDayID"].ToString()))
                    {
                        Dictionary <string, string> ssee = new Dictionary <string, string>();
                        ssee.Add("ss", dr["StartTime"].ToString().Substring(0, 5));
                        ssee.Add("ee", dr["StartTime"].ToString().Substring(0, 5));
                        inVM.TimeAry.Add(ssee);
                    }
                }

                ddListOut.Add(inVM);
            }


            if (ddListOut.Count > 0)
            {
                ddListOutAry = JsonConvert.SerializeObject(ddListOut);
            }

            if (VM2.ID > 0)
            {
                ContractID       = VM2.ID;
                tbDateStart.Text = VM2.ContractStart.ToShortTaiwanDate();
                tbDateEnd.Text   = VM2.ContractEnd.ToShortTaiwanDate();
                tbDateStop.Text  = VM2.ContractStop.ToShortTaiwanDate();

                if (tbDateStart.Text.Length == 0)
                {
                    tbDateStart.Text = DateTime.Now.ToShortTaiwanDate();
                }
            }

            var dict = SystemCode.GetDict("LocationSettingM_Divisions");

            StateListAry = JsonConvert.SerializeObject(dict);

            var codes = SystemCode.dict["ParameterM_LocationSetting_AgencyState"];

            ddlAgState.Items.Add(new ListItem("請選擇", ""));
            foreach (var item in codes)
            {
                ddlAgState.Items.Add(new ListItem(item.EnumName, item.EnumValue.ToString()));
            }

            ddlAgState.SelectedValue = VM.AgencyState.ToString();
            AgencyState = VM.AgencyState.ToString();

            lblBsState.Text = VM.BusinessStateString;
            //tbDepartment.Text = VM.Department;

            County  = VM.AgencyCounty;
            Town    = VM.AgencyTown;
            Village = VM.AgencyVillage;

            CountyName  = SystemAreaCode.GetName(VM.AgencyCounty);
            TownName    = SystemAreaCode.GetName(VM.AgencyTown);
            VillageName = SystemAreaCode.GetName(VM.AgencyVillage);

            tbAddress.Text              = VM.AgencyAddress;
            tbTelZone.Text              = VM.PhoneAreaCode;
            tbTel.Text                  = VM.AgencyPhoneNumber;
            tbSchedule.Text             = VM.InoculationSchedule;
            ddlAgencyCate.SelectedValue = VM.AgencyCate.ToString();

            lblName.Text  = VM.AgencyName;
            lblCode.Text  = VM.AgencyCode;
            tbOrg.Text    = VM.OrgName;
            hfOrgID.Value = VM.OrgID.ToString();
            //tbDepartment.Text = VM.Department;

            tbVaccine.Text = string.Join(",", list.Select(item => item.VaccineCName));
            tbOther        = VM.DepartmentOther;
            switch (VM.ReportingType)
            {
            case 1:
                rb1.Checked = true;
                break;

            case 2:
                rb2.Checked = true;
                break;

            case 3:
                rb3.Checked = true;
                break;

            case 4:
                rb4.Checked = true;
                break;
            }

            if (VM.IsSimpleFlu == false)
            {
                rbB1.Checked = true;
            }
            else
            {
                rbB2.Checked = true;
            }
            tbOtherIDs  = VM.DepartmentIDs;
            CountyJson  = JsonConvert.SerializeObject(SystemAreaCode.GetCountyList());
            TownJson    = JsonConvert.SerializeObject(SystemAreaCode.GetTownList(County));
            VillageJson = JsonConvert.SerializeObject(SystemAreaCode.GetVillageList(Town));
        }
    }
Example #6
0
    protected void Page_Init(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            BirthDate.Attributes.Add("onclick", "WdatePicker({ dateFmt: 'yyyMMdd', lang: 'zh-tw' })");
            BirthDateImg.Attributes.Add("onclick", "WdatePicker({ el:'" + BirthDate.ClientID + "',dateFmt: 'yyyMMdd', lang: 'zh-tw' })");

            //  SystemCode.UpdateSystemCode();
            if (SystemCode.dict.ContainsKey("CaseUser_ONationality"))
            {
                List <SystemCodeVM> SystemCodeList = SystemCode.dict["CaseUser_ONationality"];

                foreach (SystemCodeVM sc in SystemCodeList)
                {
                    ddlONationality.Items.Add(new ListItem(sc.EnumName, sc.EnumValue.ToString()));
                }
            }

            if (SystemCode.dict.ContainsKey("CaseUser_Language"))
            {
                List <SystemCodeVM> SystemCodeList = SystemCode.dict["CaseUser_Language"];

                foreach (SystemCodeVM sc in SystemCodeList)
                {
                    cblLang.Items.Add(new ListItem(sc.EnumName, sc.EnumValue.ToString()));
                }
            }

            if (SystemCode.dict.ContainsKey("CaseUser_Capacity"))
            {
                List <SystemCodeVM> SystemCodeList = SystemCode.dict["CaseUser_Capacity"];

                foreach (SystemCodeVM sc in SystemCodeList)
                {
                    cblCapacity.Items.Add(new ListItem(sc.EnumName, sc.EnumValue.ToString()));
                }
            }


            // SystemAreaCode.Update();


            #region 戶籍地址
            //ddlResCounty.Items.Add(new ListItem("請選擇縣市", "0"));
            //ddlResCounty.Enabled = false;
            //ddlResTown.Items.Add(new ListItem("鄉鎮市區", "0"));
            //ddlResTown.Enabled = false;
            //ddlResVillage.Items.Add(new ListItem("村里", "0"));
            //ddlResVillage.Enabled = false;
            #endregion
            #region 聯絡地址

            CountyAry = Newtonsoft.Json.JsonConvert.SerializeObject(SystemAreaCode.GetCountyList());
            //  List<SystemAreaCodeVM> CityList = SystemAreaCode.GetCountyList();
            ddlConCounty.Items.Add(new ListItem("{{option.N}}", "{{option.I}}"));
            ddlConCounty.Attributes.Add("ng-change", "SelectConCountyChange()");
            ddlConCounty.Attributes.Add("ng-model", "VM.SelectCounty");
            ddlConCounty.Attributes.Add("class", "ConCounty");
            ddlConCounty.Items[0].Attributes.Add("ng-repeat", "option in VM.CountyAry");
            //    foreach (SystemAreaCodeVM sc in CityList) ddlConCounty.Items.Add(new ListItem(sc.AreaName, sc.ID.ToString()));


            ddlConTown.Items.Add(new ListItem("{{option.N}}", "{{option.I}}"));
            ddlConTown.Attributes.Add("class", "ConTown");
            ddlConTown.Attributes.Add("ng-change", "SelectConTownChange()");
            ddlConTown.Attributes.Add("ng-model", "VM.SelectTown");
            ddlConTown.Items[0].Attributes.Add("ng-repeat", "option in VM.TownAry");

            ddlConVillage.Items.Add(new ListItem("{{option.N}}", "{{option.I}}"));
            ddlConVillage.Attributes.Add("class", "ConVillage");
            ddlConVillage.Attributes.Add("ng-model", "VM.SelectVillage");
            ddlConVillage.Items[0].Attributes.Add("ng-repeat", "option in VM.VillageAry");
            #endregion

            #region 戶籍地址


            ResCountyAry = Newtonsoft.Json.JsonConvert.SerializeObject(SystemAreaCode.GetCountyList());
            ddlResCounty.Items.Add(new ListItem("{{option.N}}", "{{option.I}}"));
            ddlResCounty.Attributes.Add("ng-change", "SelectResCountyChange()");
            ddlResCounty.Attributes.Add("ng-model", "VM.SelectResCounty");
            ddlResCounty.Attributes.Add("class", "ResCounty");
            ddlResCounty.Items[0].Attributes.Add("ng-repeat", "option in VM.ResCountyAry");


            ddlResTown.Items.Add(new ListItem("{{option.N}}", "{{option.I}}"));
            ddlResTown.Attributes.Add("class", "ResTown");
            ddlResTown.Attributes.Add("ng-change", "SelectResTownChange()");
            ddlResTown.Attributes.Add("ng-model", "VM.SelectResTown");
            ddlResTown.Items[0].Attributes.Add("ng-repeat", "option in VM.ResTownAry");

            ddlResVillage.Items.Add(new ListItem("{{option.N}}", "{{option.I}}"));
            ddlResVillage.Attributes.Add("class", "ResVillage");
            ddlResVillage.Attributes.Add("ng-model", "VM.SelectResVillage");
            ddlResVillage.Items[0].Attributes.Add("ng-repeat", "option in VM.ResVillageAry");
            #endregion
        }
    }
Example #7
0
    protected void Page_Init(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            int.TryParse(Request.Form["i"], out CaseID);


            BirthDate.Attributes.Add("onclick", "WdatePicker({ dateFmt: 'yyyMMdd', lang: 'zh-tw' })");
            BirthDateImg.Attributes.Add("onclick", "WdatePicker({ el:'" + BirthDate.ClientID + "',dateFmt: 'yyyMMdd', lang: 'zh-tw' })");
            SystemCodeControl.ServerSelect(ref ddlONationality, "CaseUser_ONationality");
            SystemCodeControl.ServerCheckBox(ref cblLang, "CaseUser_Language");
            cblLang.Attributes.Add("style", "display:inline-block;");
            SystemCodeControl.ServerSelect(ref ddlBirthMulti, "CaseUser_BirthMulti");
            SystemCodeControl.ServerSelect(ref ddlGender, "CaseUser_Gender");


            //身份別有4種
            DataTable CapDt = (DataTable)DBUtil.DBOp("ConnDB", "SELECT [ID] ,[CapacityCate] ,[TypeName] ,[bCanEdit]  FROM [dbo].[C_CaseUserCapacity_Type] order by [CapacityCate] ,[ID]", new string[] { }, NSDBUtil.CmdOpType.ExecuteReaderReturnDataTable);


            foreach (DataRow r in CapDt.Rows)
            {
                CheckBoxList cblist = (CheckBoxList)form1.FindControl("cblCapacity_" + r["CapacityCate"].ToString());
                ListItem     li     = new ListItem(r["TypeName"].ToString(), r["ID"].ToString());
                li.Enabled = Convert.ToBoolean(r["bCanEdit"]);

                if (li.Enabled || CaseID > 0)
                {
                    cblist.Items.Add(li);
                }



                if (cblist.Items.Count > 0 || CaseID > 0)
                {
                    form1.FindControl("tr_cblCapacity_" + r["CapacityCate"].ToString()).Visible = true;
                }
            }


            #region 聯絡地址

            CountyAry = Newtonsoft.Json.JsonConvert.SerializeObject(SystemAreaCode.GetCountyList());

            ddlConCounty.Items.Add(new ListItem("{{option.N}}", "{{option.I}}"));
            ddlConCounty.Attributes.Add("ng-change", "SelectConCountyChange()");
            ddlConCounty.Attributes.Add("ng-model", "VM.SelectCounty");
            ddlConCounty.Attributes.Add("class", "ConCounty");
            ddlConCounty.Items[0].Attributes.Add("ng-repeat", "option in VM.CountyAry");


            ddlConTown.Items.Add(new ListItem("{{option.N}}", "{{option.I}}"));
            ddlConTown.Attributes.Add("class", "ConTown");
            ddlConTown.Attributes.Add("ng-change", "SelectConTownChange()");
            ddlConTown.Attributes.Add("ng-model", "VM.SelectTown");
            ddlConTown.Items[0].Attributes.Add("ng-repeat", "option in VM.TownAry");

            ddlConVillage.Items.Add(new ListItem("{{option.N}}", "{{option.I}}"));
            ddlConVillage.Attributes.Add("class", "ConVillage");
            ddlConVillage.Attributes.Add("ng-model", "VM.SelectVillage");
            ddlConVillage.Items[0].Attributes.Add("ng-repeat", "option in VM.VillageAry");
            #endregion

            #region 戶籍地址


            ResCountyAry = Newtonsoft.Json.JsonConvert.SerializeObject(SystemAreaCode.GetCountyList());
            ddlResCounty.Items.Add(new ListItem("{{option.N}}", "{{option.I}}"));
            ddlResCounty.Attributes.Add("ng-change", "SelectResCountyChange()");
            ddlResCounty.Attributes.Add("ng-model", "VM.SelectResCounty");
            ddlResCounty.Attributes.Add("class", "ResCounty");
            ddlResCounty.Items[0].Attributes.Add("ng-repeat", "option in VM.ResCountyAry");


            ddlResTown.Items.Add(new ListItem("{{option.N}}", "{{option.I}}"));
            ddlResTown.Attributes.Add("class", "ResTown");
            ddlResTown.Attributes.Add("ng-change", "SelectResTownChange()");
            ddlResTown.Attributes.Add("ng-model", "VM.SelectResTown");
            ddlResTown.Items[0].Attributes.Add("ng-repeat", "option in VM.ResTownAry");

            ddlResVillage.Items.Add(new ListItem("{{option.N}}", "{{option.I}}"));
            ddlResVillage.Attributes.Add("class", "ResVillage");
            ddlResVillage.Attributes.Add("ng-model", "VM.SelectResVillage");
            ddlResVillage.Items[0].Attributes.Add("ng-repeat", "option in VM.ResVillageAry");
            #endregion



            ddlMainContact.Items.Add(new ListItem("{{option.N}}", "{{option.I}}"));
            //ddlMainContact.Attributes.Add("ng-change", "SelectConCountyChange()");
            ddlMainContact.Attributes.Add("ng-model", "VM.SelectMainContact");
            ddlMainContact.Attributes.Add("class", "SelectMainContact");
            ddlMainContact.Items[0].Attributes.Add("ng-repeat", "option in VM.MainContactAry");
            // ddlMainContact.Items[0].Attributes.Add("selected", "{{ option.S == '1' ? 'selected' : '' }}");

            //ltDDLCommentKind.Text = HtmlSelect("","ddlCommentKind", "CaseUser_RemarkType", "");
        }
    }