Beispiel #1
0
 public void BindTextBox(string ECCode)
 {
     string[] strnt = ECTagDal.GetNameEngunit(ECCode).Split(new string[] { ",", ";" }, StringSplitOptions.RemoveEmptyEntries);
     if (strnt.Length == 2)
     {
         ECName.Text     = strnt[0];
         KeyEngunit.Text = strnt[1];
     }
     else if (strnt.Length == 1)
     {
         ECName.Text     = strnt[0];
         KeyEngunit.Text = "";
     }
     else
     {
         ECName.Text     = "";
         KeyEngunit.Text = "";
     }
 }
Beispiel #2
0
        public void KPI_SubWeb_GetECNameByECCode(HttpContext context)
        {
            string ECCode     = context.Request["ECCode"];
            string ECName     = "";
            string KeyEngunit = "";

            string[] strnt = ECTagDal.GetNameEngunit(ECCode).Split(new string[] { ",", ";" }, StringSplitOptions.RemoveEmptyEntries);
            if (strnt.Length == 2)
            {
                ECName     = strnt[0];
                KeyEngunit = strnt[1];
            }
            else if (strnt.Length == 1)
            {
                ECName     = strnt[0];
                KeyEngunit = "";
            }
            else
            {
                ECName     = "";
                KeyEngunit = "";
            }
            context.Response.Write("{\"status\":\"ok\",\"ECName\":\"" + ECName + "\",\"KeyEngunit\":\"" + KeyEngunit + "\"}");
        }