Exemple #1
0
        private void initCombo()
        {
            var branchCode = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mAuthObjectValueList.FirstOrDefault(t => t.mAuthObjectName == "REGION").Value1;
            MasterSektorKemitraanBll mitraBll = new MasterSektorKemitraanBll();
            DdlBll ddlBll = new DdlBll();
            MasterKantorCabangBll cabangBll = new MasterKantorCabangBll();
            CityIndexBll          cityBll   = new CityIndexBll();

            var identitasComboData       = ddlBll.GetComboItem("ddl_identity_type");
            var sektorKemitraanComboData = mitraBll.GetData(new Hashtable());
            var companyKindComboData     = ddlBll.getComboCompanyKind(new Hashtable());
            var supplierComboData        = ddlBll.getComboSupplier(branchCode.ToString());
            var cityComboData            = cityBll.GetDataByBranch(branchCode);
            var jenisKredit = ddlBll.getJenisKredit();

            ((GridViewDataComboBoxColumn)gvPenerimaanProposal.Columns["identification_type"]).PropertiesComboBox.TextField  = "ddl_item";
            ((GridViewDataComboBoxColumn)gvPenerimaanProposal.Columns["identification_type"]).PropertiesComboBox.ValueField = "ddl_value";
            ((GridViewDataComboBoxColumn)gvPenerimaanProposal.Columns["identification_type"]).PropertiesComboBox.DataSource = identitasComboData;
            ((GridViewDataComboBoxColumn)gvPenerimaanProposal.Columns["requestor_city_id"]).PropertiesComboBox.TextField    = "city_name";
            ((GridViewDataComboBoxColumn)gvPenerimaanProposal.Columns["requestor_city_id"]).PropertiesComboBox.ValueField   = "city_appcode";
            ((GridViewDataComboBoxColumn)gvPenerimaanProposal.Columns["requestor_city_id"]).PropertiesComboBox.DataSource   = cityComboData;

            ((GridViewDataComboBoxColumn)gvPenerimaanProposal.Columns["sector_id"]).PropertiesComboBox.TextField  = "sector_name";
            ((GridViewDataComboBoxColumn)gvPenerimaanProposal.Columns["sector_id"]).PropertiesComboBox.ValueField = "id";
            ((GridViewDataComboBoxColumn)gvPenerimaanProposal.Columns["sector_id"]).PropertiesComboBox.DataSource = sektorKemitraanComboData;

            ((GridViewDataComboBoxColumn)gvPenerimaanProposal.Columns["company_kind_id"]).PropertiesComboBox.TextField  = "description";
            ((GridViewDataComboBoxColumn)gvPenerimaanProposal.Columns["company_kind_id"]).PropertiesComboBox.ValueField = "id";
            ((GridViewDataComboBoxColumn)gvPenerimaanProposal.Columns["company_kind_id"]).PropertiesComboBox.DataSource = companyKindComboData;

            ((GridViewDataComboBoxColumn)gvPenerimaanProposal.Columns["supplier_id"]).PropertiesComboBox.TextField  = "supplier_name";
            ((GridViewDataComboBoxColumn)gvPenerimaanProposal.Columns["supplier_id"]).PropertiesComboBox.ValueField = "id";
            ((GridViewDataComboBoxColumn)gvPenerimaanProposal.Columns["supplier_id"]).PropertiesComboBox.DataSource = supplierComboData;
        }
        private void initCombo()
        {
            DdlBll dll         = new DdlBll();
            var    jenisKredit = dll.getJenisKredit();
            var    jenisBunga  = dll.getJenisBunga();


            (ASPxNavBar1.Groups[2].Items[0].FindControl("cHubunganPertamina") as DevExpress.Web.ASPxEditors.ASPxComboBox).Items.Add("Ada", "1");
            (ASPxNavBar1.Groups[2].Items[0].FindControl("cHubunganPertamina") as DevExpress.Web.ASPxEditors.ASPxComboBox).Items.Add("Tidak Ada", "0");
            (ASPxNavBar1.Groups[2].Items[0].FindControl("cHubunganPertamina") as DevExpress.Web.ASPxEditors.ASPxComboBox).SelectedIndex = 0;

            (ASPxNavBar1.Groups[2].Items[0].FindControl("cHubunganBUMN") as DevExpress.Web.ASPxEditors.ASPxComboBox).Items.Add("Ada", "1");
            (ASPxNavBar1.Groups[2].Items[0].FindControl("cHubunganBUMN") as DevExpress.Web.ASPxEditors.ASPxComboBox).Items.Add("Tidak Ada", "0");
            (ASPxNavBar1.Groups[2].Items[0].FindControl("cHubunganBUMN") as DevExpress.Web.ASPxEditors.ASPxComboBox).SelectedIndex = 0;

            (ASPxNavBar1.Groups[2].Items[0].FindControl("bFasilitas") as DevExpress.Web.ASPxEditors.ASPxComboBox).Items.Add("Ada", "1");
            (ASPxNavBar1.Groups[2].Items[0].FindControl("bFasilitas") as DevExpress.Web.ASPxEditors.ASPxComboBox).Items.Add("Tidak Ada", "0");
            (ASPxNavBar1.Groups[2].Items[0].FindControl("bFasilitas") as DevExpress.Web.ASPxEditors.ASPxComboBox).SelectedIndex = 0;

            (ASPxNavBar1.Groups[12].Items[0].FindControl("mJenisKredit") as DevExpress.Web.ASPxEditors.ASPxComboBox).DataSource = jenisKredit;
            (ASPxNavBar1.Groups[12].Items[0].FindControl("mJenisKredit") as DevExpress.Web.ASPxEditors.ASPxComboBox).TextField  = "descr";
            (ASPxNavBar1.Groups[12].Items[0].FindControl("mJenisKredit") as DevExpress.Web.ASPxEditors.ASPxComboBox).ValueField = "id";
            (ASPxNavBar1.Groups[12].Items[0].FindControl("mJenisKredit") as DevExpress.Web.ASPxEditors.ASPxComboBox).DataBind();
            (ASPxNavBar1.Groups[12].Items[0].FindControl("mJenisKredit") as DevExpress.Web.ASPxEditors.ASPxComboBox).SelectedIndex = 0;

            (ASPxNavBar1.Groups[12].Items[0].FindControl("mJenisJasa") as DevExpress.Web.ASPxEditors.ASPxComboBox).DataSource = jenisBunga;
            (ASPxNavBar1.Groups[12].Items[0].FindControl("mJenisJasa") as DevExpress.Web.ASPxEditors.ASPxComboBox).TextField  = "descr";
            (ASPxNavBar1.Groups[12].Items[0].FindControl("mJenisJasa") as DevExpress.Web.ASPxEditors.ASPxComboBox).ValueField = "id";
            (ASPxNavBar1.Groups[12].Items[0].FindControl("mJenisJasa") as DevExpress.Web.ASPxEditors.ASPxComboBox).ValueType  = typeof(Int32);
            (ASPxNavBar1.Groups[12].Items[0].FindControl("mJenisJasa") as DevExpress.Web.ASPxEditors.ASPxComboBox).DataBind();
            (ASPxNavBar1.Groups[12].Items[0].FindControl("mJenisJasa") as DevExpress.Web.ASPxEditors.ASPxComboBox).SelectedIndex = 0;
        }
Exemple #3
0
        private void initCombo()
        {
            var branchCode = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mAuthObjectValueList.FirstOrDefault(t => t.mAuthObjectName == "REGION").Value1;

            MasterBLBll           jenisBlBll = new MasterBLBll();
            CityIndexBll          cityBll    = new CityIndexBll();
            DdlBll                ddlBll     = new DdlBll();
            MasterKantorCabangBll cabangBll  = new MasterKantorCabangBll();

            var binalingComboData = jenisBlBll.GetDataActive();
            var cityComboData     = cityBll.GetDataByBranch(branchCode);

            cityComboData.DefaultView.Sort = "city_name ASC";

            var statusComboData = ddlBll.GetComboItem("ddl_status_binaling");
            var cabangCombo     = cabangBll.GetData(new Hashtable());

            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["requestor_city_id"]).PropertiesComboBox.TextField  = "city_name";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["requestor_city_id"]).PropertiesComboBox.ValueField = "city_appcode";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["requestor_city_id"]).PropertiesComboBox.DataSource = cityComboData.DefaultView;

            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["binaling_kind_id"]).PropertiesComboBox.TextField  = "name";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["binaling_kind_id"]).PropertiesComboBox.ValueField = "id";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["binaling_kind_id"]).PropertiesComboBox.DataSource = binalingComboData;

            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["status"]).PropertiesComboBox.TextField  = "ddl_item";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["status"]).PropertiesComboBox.ValueField = "ddl_value";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["status"]).PropertiesComboBox.DataSource = statusComboData;


            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["branch_code"]).PropertiesComboBox.TextField  = "branch_name";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["branch_code"]).PropertiesComboBox.ValueField = "branch_code";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["branch_code"]).PropertiesComboBox.DataSource = cabangCombo;
        }
Exemple #4
0
        public void initCombo()
        {
            DdlBll combo      = new DdlBll();
            var    lahanUsaha = combo.GetComboItem("ddl_workplace");

            cbbKepemilikan.TextField  = "ddl_item";
            cbbKepemilikan.ValueField = "ddl_value";
            cbbKepemilikan.DataSource = lahanUsaha;
            cbbKepemilikan.DataBind();
        }
Exemple #5
0
        private void InitCombo()
        {
            DdlBll ddlBll = new DdlBll();

            var comboData = ddlBll.GetComboItem("ddl_administrasi");

            cbbBahanBaku.DataSource = comboData;
            cbbBahanBaku.TextField  = "ddl_item";
            cbbBahanBaku.ValueField = "ddl_value";
            cbbBahanBaku.DataBind();
            cbbBahanBaku.SelectedIndex = 0;


            cbbMesin.DataSource = comboData;
            cbbMesin.TextField  = "ddl_item";
            cbbMesin.ValueField = "ddl_value";
            cbbMesin.DataBind();
            cbbMesin.SelectedIndex = 0;

            cbbTempatUsaha.DataSource = comboData;
            cbbTempatUsaha.TextField  = "ddl_item";
            cbbTempatUsaha.ValueField = "ddl_value";
            cbbTempatUsaha.DataBind();

            cbbKursus.DataSource = comboData;
            cbbKursus.TextField  = "ddl_item";
            cbbKursus.ValueField = "ddl_value";
            cbbKursus.DataBind();
            cbbKursus.SelectedIndex = 0;

            cbbKeterampilan.DataSource = comboData;
            cbbKeterampilan.TextField  = "ddl_item";
            cbbKeterampilan.ValueField = "ddl_value";
            cbbKeterampilan.DataBind();
            cbbKeterampilan.SelectedIndex = 0;


            cbbPinjaman.DataSource = comboData;
            cbbPinjaman.TextField  = "ddl_item";
            cbbPinjaman.ValueField = "ddl_value";
            cbbPinjaman.DataBind();
            cbbPinjaman.SelectedIndex = 0;

            cbbPeralatan.DataSource = comboData;
            cbbPeralatan.TextField  = "ddl_item";
            cbbPeralatan.ValueField = "ddl_value";
            cbbPeralatan.DataBind();
            cbbPeralatan.SelectedIndex = 0;

            cbbRencana.DataSource = comboData;
            cbbRencana.TextField  = "ddl_item";
            cbbRencana.ValueField = "ddl_value";
            cbbRencana.DataBind();
            cbbRencana.SelectedIndex = 0;
        }
        private void initCombo()
        {
            var    branchCode = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mAuthObjectValueList.FirstOrDefault(t => t.mAuthObjectName == "REGION").Value1;
            DdlBll ddlBll     = new DdlBll();
            MasterSektorKemitraanBll mitraBll  = new MasterSektorKemitraanBll();
            MasterKantorCabangBll    cabangBll = new MasterKantorCabangBll();
            CityIndexBll             cityBll   = new CityIndexBll();
            Hashtable param = new Hashtable();

            var identitasComboData       = ddlBll.GetComboItem("ddl_identity_type");
            var sektorKemitraanComboData = mitraBll.GetData(new Hashtable());
            var cityComboData            = cityBll.GetDataByBranch(branchCode);
            var jenisKredit   = ddlBll.getJenisKreditHibah();
            var companyKind   = ddlBll.getComboCompanyKind(param);
            var homeOwnership = ddlBll.getComboHomeOwner(param);
            var education     = ddlBll.getComboEducation(param);
            var maritalStatus = ddlBll.getComboMarital(param);

            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["identification_type"]).PropertiesComboBox.TextField  = "ddl_item";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["identification_type"]).PropertiesComboBox.ValueField = "ddl_value";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["identification_type"]).PropertiesComboBox.DataSource = identitasComboData;

            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["requestor_city_id"]).PropertiesComboBox.TextField  = "city_name";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["requestor_city_id"]).PropertiesComboBox.ValueField = "city_appcode";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["requestor_city_id"]).PropertiesComboBox.DataSource = cityComboData;

            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["sector_id"]).PropertiesComboBox.TextField  = "sector_name";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["sector_id"]).PropertiesComboBox.ValueField = "id";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["sector_id"]).PropertiesComboBox.DataSource = sektorKemitraanComboData;

            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["company_kind_id"]).PropertiesComboBox.TextField  = "description";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["company_kind_id"]).PropertiesComboBox.ValueField = "id";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["company_kind_id"]).PropertiesComboBox.DataSource = companyKind;

            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["credit_kind_id"]).PropertiesComboBox.TextField  = "descr";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["credit_kind_id"]).PropertiesComboBox.ValueField = "id";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["credit_kind_id"]).PropertiesComboBox.DataSource = jenisKredit;

            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["education_lv_id"]).PropertiesComboBox.TextField  = "description";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["education_lv_id"]).PropertiesComboBox.ValueField = "id";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["education_lv_id"]).PropertiesComboBox.DataSource = education;

            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["marital_status_id"]).PropertiesComboBox.TextField  = "description";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["marital_status_id"]).PropertiesComboBox.ValueField = "id";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["marital_status_id"]).PropertiesComboBox.DataSource = maritalStatus;

            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["home_ownership_id"]).PropertiesComboBox.TextField  = "description";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["home_ownership_id"]).PropertiesComboBox.ValueField = "id";
            ((GridViewDataComboBoxColumn)gvPermohonan.Columns["home_ownership_id"]).PropertiesComboBox.DataSource = homeOwnership;
        }
Exemple #7
0
        private void initCombo()
        {
            MasterBLBll  jenisBlBll = new MasterBLBll();
            CityIndexBll cityBll    = new CityIndexBll();
            DdlBll       ddlBll     = new DdlBll();

            var binalingComboData = jenisBlBll.GetDataActive();
            var cityComboData     = cityBll.GetData(new Hashtable());
            var statusComboData   = ddlBll.GetComboItem("ddl_input_penilaian");

            ((GridViewDataComboBoxColumn)gvBlPenilaian.Columns["evaluation_result"]).PropertiesComboBox.TextField  = "ddl_item";
            ((GridViewDataComboBoxColumn)gvBlPenilaian.Columns["evaluation_result"]).PropertiesComboBox.ValueField = "ddl_value";
            ((GridViewDataComboBoxColumn)gvBlPenilaian.Columns["evaluation_result"]).PropertiesComboBox.DataSource = statusComboData;
        }
Exemple #8
0
        private void InitCombo()
        {
            DdlBll ddlBll = new DdlBll();

            var comboData = ddlBll.GetComboItem("ddl_checklist_input");

            cbbActivity.DataSource = comboData;
            cbbActivity.TextField  = "ddl_item";
            cbbActivity.ValueField = "ddl_value";
            cbbActivity.DataBind();

            cbbKTP.DataSource = comboData;
            cbbKTP.TextField  = "ddl_item";
            cbbKTP.ValueField = "ddl_value";
            cbbKTP.DataBind();

            cbbPICorComitee.DataSource = comboData;
            cbbPICorComitee.TextField  = "ddl_item";
            cbbPICorComitee.ValueField = "ddl_value";
            cbbPICorComitee.DataBind();

            cbbProfilePic.DataSource = comboData;
            cbbProfilePic.TextField  = "ddl_item";
            cbbProfilePic.ValueField = "ddl_value";
            cbbProfilePic.DataBind();

            cbbProposalComplete.DataSource = comboData;
            cbbProposalComplete.TextField  = "ddl_item";
            cbbProposalComplete.ValueField = "ddl_value";
            cbbProposalComplete.DataBind();

            cbbRAB.DataSource = comboData;
            cbbRAB.TextField  = "ddl_item";
            cbbRAB.ValueField = "ddl_value";
            cbbRAB.DataBind();



            var data = bll.GetCurrent(Session["idPermohonan"].ToString());

            if (data.Rows.Count > 0)
            {
                cbbActivity.SelectedItem         = cbbActivity.Items.FindByValue(data.Rows[0]["activity_photo_checked"]);
                cbbKTP.SelectedItem              = cbbKTP.Items.FindByValue(data.Rows[0]["idcard_or_drivinglicense_checked"]);
                cbbPICorComitee.SelectedItem     = cbbPICorComitee.Items.FindByValue(data.Rows[0]["pic_or_commitee_checked"]);
                cbbProfilePic.SelectedItem       = cbbProfilePic.Items.FindByValue(data.Rows[0]["profilephoto_checked"]);
                cbbProposalComplete.SelectedItem = cbbProposalComplete.Items.FindByValue(data.Rows[0]["complete_proposal_checked"]);
                cbbRAB.SelectedItem              = cbbRAB.Items.FindByValue(data.Rows[0]["activity_photo_checked"]);
            }
        }
        private void initCombo()
        {
            var    branchCode = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mAuthObjectValueList.FirstOrDefault(t => t.mAuthObjectName == "REGION").Value1;
            DdlBll ddlBll     = new DdlBll();

            var comboPersetujuan = ddlBll.GetComboItem("ddl_input_persetujuan");
            var jenisKredit      = ddlBll.getJenisKreditHibah();


            ((GridViewDataComboBoxColumn)gvPersetujuan.Columns["creditkind_id"]).PropertiesComboBox.TextField  = "descr";
            ((GridViewDataComboBoxColumn)gvPersetujuan.Columns["creditkind_id"]).PropertiesComboBox.ValueField = "id";
            ((GridViewDataComboBoxColumn)gvPersetujuan.Columns["creditkind_id"]).PropertiesComboBox.DataSource = jenisKredit;

            ((GridViewDataComboBoxColumn)gvPersetujuan.Columns["status"]).PropertiesComboBox.TextField  = "ddl_item";
            ((GridViewDataComboBoxColumn)gvPersetujuan.Columns["status"]).PropertiesComboBox.ValueField = "ddl_value";
            ((GridViewDataComboBoxColumn)gvPersetujuan.Columns["status"]).PropertiesComboBox.DataSource = comboPersetujuan;
        }
Exemple #10
0
        public void initCombo()
        {
            DdlBll combo = new DdlBll();

            var produksi  = combo.GetComboItem("ddl_produksi");
            var pemasaran = combo.GetComboItem("ddl_pemasaran");

            cbbBrgProd.DataSource = produksi;
            cbbBrgProd.TextField  = "ddl_item";
            cbbBrgProd.ValueField = "ddl_value";
            cbbBrgProd.DataBind();
            cbbBrgProd.SelectedIndex = 0;

            cbbDaerahPemasaran.DataSource = pemasaran;
            cbbDaerahPemasaran.TextField  = "ddl_item";
            cbbDaerahPemasaran.ValueField = "ddl_value";
            cbbDaerahPemasaran.DataBind();
            cbbDaerahPemasaran.SelectedIndex = 0;
        }
Exemple #11
0
        private void initCombo()
        {
            MasterBLBll  jenisBlBll = new MasterBLBll();
            CityIndexBll cityBll    = new CityIndexBll();
            DdlBll       ddlBll     = new DdlBll();

            var binalingComboData  = jenisBlBll.GetDataActive();
            var cityComboData      = cityBll.GetData(new Hashtable());
            var workOrderComboData = ddlBll.GetComboItem("ddl_input_persetujuan");

            ((GridViewDataComboBoxColumn)gvPersetujuan.Columns["requestor_city_id"]).PropertiesComboBox.TextField  = "city_name";
            ((GridViewDataComboBoxColumn)gvPersetujuan.Columns["requestor_city_id"]).PropertiesComboBox.ValueField = "city_appcode";
            ((GridViewDataComboBoxColumn)gvPersetujuan.Columns["requestor_city_id"]).PropertiesComboBox.DataSource = cityComboData;

            ((GridViewDataComboBoxColumn)gvPersetujuan.Columns["binaling_kind_id"]).PropertiesComboBox.TextField  = "bl_kind";
            ((GridViewDataComboBoxColumn)gvPersetujuan.Columns["binaling_kind_id"]).PropertiesComboBox.ValueField = "id";
            ((GridViewDataComboBoxColumn)gvPersetujuan.Columns["binaling_kind_id"]).PropertiesComboBox.DataSource = binalingComboData;

            ((GridViewDataComboBoxColumn)gvPersetujuan.Columns["approval_result"]).PropertiesComboBox.TextField  = "ddl_item";
            ((GridViewDataComboBoxColumn)gvPersetujuan.Columns["approval_result"]).PropertiesComboBox.ValueField = "ddl_value";
            ((GridViewDataComboBoxColumn)gvPersetujuan.Columns["approval_result"]).PropertiesComboBox.DataSource = workOrderComboData;
        }
Exemple #12
0
        public void initCombo()
        {
            var          branchCode    = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mAuthObjectValueList.FirstOrDefault(t => t.mAuthObjectName == "REGION").Value1;
            CityIndexBll city          = new CityIndexBll();
            DdlBll       combo         = new DdlBll();
            var          cityComboData = city.GetDataByBranch(branchCode);

            var lahanUsaha = combo.GetComboItem("ddl_workplace");
            var pembukuan  = combo.GetComboItem("ddl_pembukuan");
            var pinjaman   = combo.GetComboItem("ddl_pinjaman");


            cbbKota.TextField  = "city_name";
            cbbKota.ValueField = "city_appcode";
            cbbKota.DataSource = cityComboData;
            cbbKota.DataBind();

            cbbLahanUsaha.TextField  = "ddl_item";
            cbbLahanUsaha.ValueField = "ddl_value";
            cbbLahanUsaha.DataSource = lahanUsaha;
            cbbLahanUsaha.DataBind();

            //pembukuan.Rows.Add(new object[] { "-", 0 });
            cbbAdmPembukuan.TextField  = "ddl_item";
            cbbAdmPembukuan.ValueField = "ddl_value";
            cbbAdmPembukuan.DataSource = pembukuan;
            cbbAdmPembukuan.DataBind();
            cbbAdmPembukuan.SelectedItem = cbbAdmPembukuan.Items.FindByText("Tidak");

            //pinjaman.Rows.Add(new object[] { "-", 0 });
            cbbPinjaman.TextField  = "ddl_item";
            cbbPinjaman.ValueField = "ddl_value";
            cbbPinjaman.DataSource = pinjaman;
            cbbPinjaman.DataBind();
            cbbPinjaman.SelectedItem = cbbPinjaman.Items.FindByText("Tidak");
        }
Exemple #13
0
        protected void InitCombo()
        {
            DdlBll ddlBll = new DdlBll();

            var debtCredComboData = ddlBll.GetComboItem("ddl_debt_cred");
            var programCombo      = ddlBll.GetComboItem("ddl_program");
            var headerCombo       = ddlBll.GetComboItem("ddl_headerinfo");
            var groupCombo        = ddlBll.GetGroupAcc();
            var data = bll.GetData(new Hashtable());

            ((GridViewDataComboBoxColumn)gvNomorAkun.Columns["debt_cred"]).PropertiesComboBox.TextField  = "ddl_item";
            ((GridViewDataComboBoxColumn)gvNomorAkun.Columns["debt_cred"]).PropertiesComboBox.ValueField = "ddl_value";
            ((GridViewDataComboBoxColumn)gvNomorAkun.Columns["debt_cred"]).PropertiesComboBox.DataSource = debtCredComboData;


            ((GridViewDataComboBoxColumn)gvNomorAkun.Columns["program_id"]).PropertiesComboBox.TextField  = "ddl_item";
            ((GridViewDataComboBoxColumn)gvNomorAkun.Columns["program_id"]).PropertiesComboBox.ValueField = "ddl_value";
            ((GridViewDataComboBoxColumn)gvNomorAkun.Columns["program_id"]).PropertiesComboBox.DataSource = programCombo;

            ((GridViewDataComboBoxColumn)gvNomorAkun.Columns["header_info"]).PropertiesComboBox.TextField  = "ddl_item";
            ((GridViewDataComboBoxColumn)gvNomorAkun.Columns["header_info"]).PropertiesComboBox.ValueField = "ddl_value";
            ((GridViewDataComboBoxColumn)gvNomorAkun.Columns["header_info"]).PropertiesComboBox.DataSource = headerCombo;

            ((GridViewDataComboBoxColumn)gvNomorAkun.Columns["group_id"]).PropertiesComboBox.TextField  = "group_nama";
            ((GridViewDataComboBoxColumn)gvNomorAkun.Columns["group_id"]).PropertiesComboBox.ValueField = "group_id";
            ((GridViewDataComboBoxColumn)gvNomorAkun.Columns["group_id"]).PropertiesComboBox.DataSource = groupCombo;

            foreach (DataRow item in data.Rows)
            {
                item["account_name"] = item["account_id"].ToString() + " - " + item["account_name"].ToString();
            }

            ((GridViewDataComboBoxColumn)gvNomorAkun.Columns["parent_account_id"]).PropertiesComboBox.TextField  = "account_name";
            ((GridViewDataComboBoxColumn)gvNomorAkun.Columns["parent_account_id"]).PropertiesComboBox.ValueField = "account_id";
            ((GridViewDataComboBoxColumn)gvNomorAkun.Columns["parent_account_id"]).PropertiesComboBox.DataSource = data;
        }
Exemple #14
0
        protected void InitCombo()
        {
            var branccode   = ((wcf_auth.GeneralUserProfile)SessionCheck.Check(Response, Session["userprofile"])).mAuthObjectValueList.FirstOrDefault(t => t.mAuthObjectName == "REGION").Value1;
            var coa         = (new BLL.Akuntansi.DetailPencairanPKBll()).GetAkun(branccode);
            var sector      = (new BLL.Kemitraan.MasterSektorKemitraanBll()).GetData(new Hashtable());
            var suplier     = (new BLL.DdlBll()).getComboSupplier(branccode.ToString());
            var companykind = (new BLL.DdlBll()).getComboCompanyKind(new Hashtable());
            var jenisbunga  = (new BLL.DdlBll()).getJenisBunga();
            var jkr         = (new BLL.DdlBll()).getJenisKredit();
            var kotas       = new BLL.Administer.CityIndexBll().GetDataByBranch(branccode);

            cbbKota.DataSource = kotas;
            cbbKota.TextField  = "city_name";
            cbbKota.ValueField = "city_appcode";
            cbbKota.DataBind();

            cbbCOABank.DataSource = coa;
            cbbCOABank.TextField  = "display_coa";
            cbbCOABank.ValueField = "account_id";
            cbbCOABank.DataBind();

            cbbSector.TextField  = "sector_name";
            cbbSector.ValueField = "id";
            cbbSector.DataSource = sector;
            cbbSector.DataBind();

            cbbSuplier.TextField  = "supplier_name";
            cbbSuplier.ValueField = "id";
            cbbSuplier.DataSource = suplier;
            cbbSuplier.DataBind();

            cbbJenisJasa.TextField  = "descr";
            cbbJenisJasa.ValueField = "id";
            cbbJenisJasa.DataSource = jenisbunga;
            cbbJenisJasa.DataBind();

            cbbCompanyKind.TextField  = "description";
            cbbCompanyKind.ValueField = "id";
            cbbCompanyKind.DataSource = companykind;
            cbbCompanyKind.DataBind();

            cbbJkr.TextField  = "descr";
            cbbJkr.ValueField = "id";
            cbbJkr.DataSource = jkr;
            cbbJkr.DataBind();

            DdlBll combo = new DdlBll();

            var marital   = combo.getComboMarital(new Hashtable());
            var education = combo.getComboEducation(new Hashtable());

            cbbPendidikanTerakhir.TextField  = "description";
            cbbPendidikanTerakhir.ValueField = "id";
            cbbPendidikanTerakhir.DataSource = education;
            cbbPendidikanTerakhir.DataBind();

            cbbStatusPernikahan.TextField  = "description";
            cbbStatusPernikahan.ValueField = "id";
            cbbStatusPernikahan.DataSource = marital;
            cbbStatusPernikahan.DataBind();
        }