예제 #1
0
파일: Tree.cs 프로젝트: g82tt/xcore
 private static int getSelectedValue(String dropName, int val)
 {
     if (CurrentRequest.getHttpMethod().Equals("POST"))
     {
         return(cvt.ToInt(CurrentRequest.getForm(dropName)));
     }
     return(val);
 }
예제 #2
0
파일: Html.cs 프로젝트: zhdwwf/wojilu
        private static String getSelectedValue(String dropName, Object val)
        {
            String str = cvt.ToNotNull(val);

            if (strUtil.IsNullOrEmpty(str) && CurrentRequest.getHttpMethod().Equals("POST"))
            {
                str = CurrentRequest.getForm(dropName);
            }
            str = cvt.ToNotNull(str);
            return(str);
        }
예제 #3
0
파일: Html.cs 프로젝트: zhdwwf/wojilu
 private static String[] getSelectValueArray(String chkName, String selectValue)
 {
     if (CurrentRequest.getHttpMethod().Equals("POST"))
     {
         selectValue = CurrentRequest.getForm(chkName);
     }
     if (strUtil.HasText(selectValue))
     {
         return(selectValue.Split(new char[] { ',' }));
     }
     return(null);
 }