Esempio n. 1
0
        /// Class Function : To Validate anything

        public static bool isValidUserPass(string user, string pass)
        {
            WebService_KMO.Service ws = new WebService_KMO.Service();
            bool x = ws.validate_userpass(user, pass);

            return(x);
        }
Esempio n. 2
0
        public static void PilihPolisAktif(DropDownList x, string id, string username)
        {
            WebService_KMO.Service ws = new WebService_KMO.Service();
            DataSet ds = new DataSet();

            ds               = ws.get_ddl_polis_login_userid(username);
            x.DataSource     = ds;
            x.DataTextField  = "DDL_TXT";
            x.DataValueField = "DDL_VAL";
            x.DataBind();

            try { x.Items.FindByValue(id).Selected = true; }
            catch (Exception ex) { }
        }
Esempio n. 3
0
        public static void JenisDokumenPengajuan(DropDownList x, string id)
        {
            WebService_KMO.Service ws = new WebService_KMO.Service();
            DataSet ds = new DataSet();

            ds               = ws.get_ddl_list_jenis_dokumen_pengajuan();
            x.DataSource     = ds;
            x.DataTextField  = "DDL_TXT";
            x.DataValueField = "DDL_VAL";
            x.DataBind();

            try { x.Items.FindByValue(id).Selected = true; }
            catch (Exception ex) { }
        }
Esempio n. 4
0
        public static void CaraBayarPremi(DropDownList x, string id)
        {
            WebService_KMO.Service ws = new WebService_KMO.Service();
            DataSet ds = new DataSet();

            ds               = ws.get_ddl_list_premium_type("");
            x.DataSource     = ds;
            x.DataTextField  = "DDL_TXT";
            x.DataValueField = "DDL_VAL";
            x.DataBind();

            try { x.Items.FindByValue(id).Selected = true; }
            catch (Exception ex) { }
        }