예제 #1
0
        public static string ManageScripts(string intMode, string intScriptId, string strScriptName, string strScriptDescription)
        {
            DataSet        ds = new DataSet();
            PhoneDashboard objPhoneDashboard = new PhoneDashboard();

            objPhoneDashboard.intMode              = Convert.ToInt32(intMode);
            objPhoneDashboard.intScriptId          = Convert.ToInt32(intScriptId);
            objPhoneDashboard.strScriptName        = strScriptName;
            objPhoneDashboard.strScriptDescription = strScriptDescription;

            ds = UserBLL.Instance.manageScripts(objPhoneDashboard);
            if (ds != null)
            {
                if (ds.Tables[0].Rows.Count > 0)
                {
                    return(JsonConvert.SerializeObject(ds.Tables[0]));
                }
                else
                {
                    return(string.Empty);
                }
            }
            else
            {
                return(string.Empty);
            }
        }
예제 #2
0
파일: UserBLL.cs 프로젝트: crazyzoar/JG
 public DataSet manageScripts(PhoneDashboard objPhoneDashboard)
 {
     return(UserDAL.Instance.manageScripts(objPhoneDashboard));
 }