Exemplo n.º 1
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();

            if (!Page.IsPostBack)
            {
                backbtn.Visible = false;
                hasil.Visible   = false;

                nokontrak1.Attributes["ondblclick"] = "popDaftarKontrak('a&tag=1');";
                InitForm();
                if (Request.QueryString["NoKontrak"] != null)
                {
                    //dari halaman kontrak
                    dariDaftar.Checked           = true;
                    nokontrak1.Text              = Cf.Pk(Request.QueryString["NoKontrak"]);
                    cancel.Attributes["onclick"] = "location.href='KontrakDaftar3.aspx?NoKontrak="
                                                   + Cf.Pk(Request.QueryString["NoKontrak"]) + "'";
                    LoadKontrak();
                }
                else
                {
                    Js.Focus(this, nokontrak1);
                    frm.Visible   = false;
                    hasil.Visible = false;
                }
            }
            FeedBack();

            if (hasil.Visible)
            {
                Js.Confirm(this, "Lanjutkan proses customize tagihan?");
                Isi(false);
            }
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Page.IsPostBack)
            {
                Act.ProjectList(project);

                if (Request.QueryString["f"] == null)
                {
                    frm.Visible = false;
                    FillHeader();
                }
                else
                {
                    Act.CekInt(Request.QueryString["f"]);
                    pilih.Visible = false;
                }
            }

            Js.Confirm(this, "Lanjutkan proses set price list unit properti?");
            FeedBack();

            if (frm.Visible)
            {
                Fill();
            }
        }
Exemplo n.º 3
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Act.Sec("ED:" + Request.PhysicalPath))
            {
                ok.Enabled   = false;
                save.Enabled = false;
            }

            if (Tipe != "TENANT")
            {
                FillTable();
                tenant.Visible = false;
            }
            else
            {
                //tipe tenant
                tenant.Visible = true;
                frm.Visible    = false;
            }

            FeedBack();
            Js.Confirm(this, "Lanjutkan proses edit alokasi pelunasan?");
        }
Exemplo n.º 4
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            Fill();
            fillTagihan();
            if (!Page.IsPostBack)
            {
                if (Request.QueryString["NoKontrak"] != null)
                {
                    LoadKontrak();
                }
                else
                {
                    frm.Visible = false;
                }
            }

            FeedBack();
            if (frm.Visible)
            {
                Js.Confirm(this, "Lanjutkan proses pencatatan Cashback?");
            }
        }
Exemplo n.º 5
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            Act.CekInt("NoCustomer");

            if (!Page.IsPostBack)
            {
                if (Func.CekKontrak(NoCustomer))
                {
                    warning.Text   = "Transaksi kontrak";
                    delbtn.Enabled = false;
                }
                else
                {
                    warning.Text = "";
                }

                Js.Focus(this, ket);
                Js.Confirm(this,
                           "Apakah anda ingin menghapus customer : " + NoCustomer + " ?\\n"
                           + "Perhatian bahwa data akan dihapus secara PERMANEN."
                           );
            }
        }
Exemplo n.º 6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Page.IsPostBack)
            {
                backbtn.Visible = false;

                Cf.BindBulan(bln);
                Cf.BindTahun(thn);

                bln.SelectedValue = DateTime.Now.Month.ToString();
                thn.SelectedValue = DateTime.Now.Year.ToString();

                if (Request.QueryString["NoKontrak"] != null)
                {
                    dariReminder.Checked = true;
                    LoadKontrak();
                }
                else
                {
                    frm.Visible = false;
                }
            }
            Fill();
            FeedBack();
            if (frm.Visible)
            {
                Js.Confirm(this, "Lanjutkan proses setting target agent?");
            }
        }
Exemplo n.º 7
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Page.IsPostBack)
            {
                DataTable rs = Db.Rs("SELECT * FROM REF_EMAIL"
                                     + " WHERE ID = '" + ID + "'"
                                     );
                if (rs.Rows.Count == 0)
                {
                    Response.Redirect("/CustomError/Deleted.html");
                }
                else if (!Act.AksesProject(rs.Rows[0]["Project"].ToString()))
                {
                    Response.Redirect("/CustomError/SecLevel.html");
                }

                Js.Focus(this, ket);
                Js.Confirm(this,
                           "Apakah anda ingin menghapus Email : " + rs.Rows[0]["Email"].ToString() + " ?\\n"
                           + "Perhatian bahwa data akan dihapus secara PERMANEN."
                           );
            }
        }
Exemplo n.º 8
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Page.IsPostBack)
            {
                nobg.Attributes["ondblclick"] = "popDaftarBG();";
                InitForm();

                Js.Focus(this, ket);

                detildiv.Visible            = false;
                nilai.Attributes["onfocus"] = "tempnum=CalcFocus(this);";
                nilai.Attributes["onkeyup"] = "CalcType(this,tempnum);";
                nilai.Attributes["onblur"]  = "CalcBlur(this);";

                fillanonim();
                fillAcc();
            }

            if (detildiv.Visible)
            {
                Js.Confirm(this, "Lanjutkan proses registrasi tanda terima sementara?");
            }

            FillTb();
        }
Exemplo n.º 9
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Page.IsPostBack)
            {
                backbtn.Visible = false;
                nokontrak.Attributes["ondblclick"] = "popDaftarKontrak('a&ppjb=1');";

                if (Request.QueryString["NoKontrak"] != null)
                {
                    dariReminder.Checked = true;
                    nokontrak.Text       = Request.QueryString["NoKontrak"];
                    LoadKontrak();

                    cancel.Attributes["onclick"] = "location.href='ReminderPPJB.aspx'";
                }
                else
                {
                    Js.Focus(this, nokontrak);
                    frm.Visible = false;
                }
            }

            FeedBack();
            if (frm.Visible)
            {
                Js.Confirm(this, "Lanjutkan proses pencatatan aktivitas PPJB?");
            }
        }
Exemplo n.º 10
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Act.Sec("ED:" + Request.PhysicalPath))
            {
                ok.Enabled   = true;
                save.Enabled = true;
            }

            if (!Page.IsPostBack)
            {
                btnpop.Attributes["onclick"] = "popDaftarVA('" + NoStock + "')";

                nova.Attributes.Add("readonly", "readonly");
                Bind(); //tanggal dan bulan
                Fill();
            }

            if (carabayar2.SelectedValue != "")
            {
                carabayar2.Enabled = false;
            }

            FeedBack();
            Js.Confirm(this, "Lanjutkan proses edit kontrak?\\n");
        }
Exemplo n.º 11
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Page.IsPostBack)
            {
                string[]  x  = Cf.SplitByString(Acc, ";");
                DataTable rs = Db.Rs("SELECT * FROM " + Mi.DbPrefix + "FINANCEAR..REF_ACC"
                                     + " WHERE Acc = '" + x[0] + "' AND SubID='" + x[1] + "'"
                                     );
                if (rs.Rows.Count == 0)
                {
                    Response.Redirect("/CustomError/Deleted.html");
                }
                else if (!Act.AksesProject(rs.Rows[0]["Project"].ToString()))
                {
                    Response.Redirect("/CustomError/SecLevel.html");
                }

                Js.Focus(this, ket);
                Js.Confirm(this,
                           "Apakah anda ingin menghapus account : " + Acc + " ?\\n"
                           + "Perhatian bahwa data akan dihapus secara PERMANEN."
                           );
            }
        }
Exemplo n.º 12
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Page.IsPostBack)
            {
                InitForm();
            }

            id id = new id();

            id.index = 0;

            if (HakApp().Rows.Count > 0)
            {
                DataTable hakapp = Db.Rs("SELECT * FROM ISC064_SECURITY..REF_APPROVAL WHERE Tipe = 3 AND UserID = '" + Act.UserID + "'");
                for (int i = 0; i < hakapp.Rows.Count; i++)
                {
                    Fill(Convert.ToInt16(hakapp.Rows[i]["Lvl"]), id);
                }
            }
            else
            {
                Fill();
            }
            FeedBack();
            if (frm.Visible)
            {
                Js.Confirm(this, "Jalankan prosedur APPROVAL PEMBATALAN KONTRAK?\\nProses ini akan merubah data kepemilikan unit properti.");
            }
        }
Exemplo n.º 13
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Act.Sec("ED:" + Request.PhysicalPath))
            {
                ok.Enabled   = false;
                save.Enabled = false;
            }

            if (!Page.IsPostBack)
            {
                Act.ProjectList(project);
                Fill();
                Bind(); //tanggal dan bulan
                string strSql = "SELECT * FROM MS_UNIT WHERE NoStock = '" + NoStock + "'";

                DataTable rs = Db.Rs(strSql);
                jenis.SelectedValue = rs.Rows[0]["Jenis"].ToString();
                tipe.SelectedValue  = rs.Rows[0]["JenisProperti"].ToString();
            }

            FeedBack();
            Js.Confirm(this, "Lanjutkan proses edit data unit properti?\\n"
                       + "PRICE LIST yang sudah di-set harus di-set ulang.");
        }
Exemplo n.º 14
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Act.Pass();
            Act.NoCache();
            Act.CekInt(NoUrut);

            int adSN = Db.SingleInteger("SELECT COunt(*) FROM MS_KONTRAK_GIMMICK WHERE NoKontrak = '" + NoKontrak + "' AND SN > " + NoUrut);

            if (adSN > 0)
            {
                frm.Visible = false;
                ale.Visible = true;
            }
            else
            {
                frm.Visible = true;
                ale.Visible = false;
            }


            Js.Confirm(this,
                       "Apakah anda ingin menghapus Gimmick : " + NoUrut + " ?\\n"
                       + "Perhatian bahwa data akan dihapus secara PERMANEN."
                       );
        }
Exemplo n.º 15
0
        protected void next_Click(object sender, EventArgs e)
        {
            DateTime Dari      = Convert.ToDateTime(dari.Text);
            DateTime Sampai    = Convert.ToDateTime(sampai.Text);
            string   thnDari   = Dari.Year.ToString();
            string   thnSampai = Sampai.Year.ToString();

            if (thnDari.Length == 3 || thnSampai.Length == 3)
            {
                Js.Alert(
                    this
                    , "Format Tahun Tidak Valid.\\n\\n"
                    + "Format Tahun : 2 atau 4 digit.\\n"
                    , "document.getElementById('nokontrak').focus();"
                    + "document.getElementById('nokontrak').select();"
                    );
            }
            else
            {
                if (valid())
                {
                    pilih.Visible  = false;
                    pilih2.Visible = false;
                    frm.Visible    = true;

                    FillTb(NoAgent);

                    Js.Confirm(this, "Lanjutkan proses generate jadwal komisi?");
                }
            }
        }
Exemplo n.º 16
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Page.IsPostBack)
            {
                if (Func.CekAkunting(NoKontrak))
                {
                    warning.Text   = "Transaksi sudah pernah diposting ke Akunting";
                    delbtn.Enabled = false;
                }
                else
                {
                    warning.Text = "";
                }

                if (Func.CekTTS(NoKontrak) || Func.CekMemo(NoKontrak))
                {
                    warning.Text   = "Sebagian tagihan dari kontrak ini sudah dibayar";
                    delbtn.Enabled = false;
                }
                else
                {
                    warning.Text = "";
                }

                Js.Focus(this, ket);
                Js.Confirm(this,
                           "Apakah anda ingin menghapus kontrak : " + NoKontrak + " ?\\n"
                           + "Perhatian bahwa data akan dihapus secara PERMANEN."
                           );
            }
        }
Exemplo n.º 17
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Page.IsPostBack)
            {
                rTglKembali.Visible = false;
                backbtn.Visible     = false;
                btnAct.Visible      = false;
                nokontrak.Attributes["ondblclick"] = "popDaftarKontrak('a&ppjb=1');";

                if (Request.QueryString["NoKontrak"] != null)
                {
                    nokontrak.Text = Request.QueryString["NoKontrak"];
                    LoadKontrak();

                    cancel.Attributes["onclick"] = "location.href='CBRegistrasi1.aspx'";
                }
                else
                {
                    Js.Focus(this, nokontrak);
                    frm.Visible = false;
                }
            }

            FeedBack();
            if (frm.Visible)
            {
                Js.Confirm(this, "Lanjutkan proses pencatatan Cashback?");
            }
        }
Exemplo n.º 18
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Page.IsPostBack)
            {
                backbtn.Visible = false;
                nokontrak.Attributes["ondblclick"] = "popDaftarKontrak('a&st=1');";

                if (Request.QueryString["NoKontrak"] != null)
                {
                    dariReminder.Checked = true;
                    nokontrak.Text       = Request.QueryString["NoKontrak"];
                    LoadKontrak();
                    string Project = Db.SingleString("SELECT Project FROM MS_KONTRAK WHERE NoKontrak = '" + NoKontrak + "'");
                    cancel.Attributes["onclick"] = "location.href='ReminderST.aspx?Project=" + Project + "'";
                }
                else
                {
                    Js.Focus(this, nokontrak);
                    frm.Visible = false;
                }
            }

            FeedBack();
            if (frm.Visible)
            {
                Js.Confirm(this, "Lanjutkan proses serah terima unit properti?");
            }
        }
Exemplo n.º 19
0
        protected void next_Click(object sender, System.EventArgs e)
        {
            if (valid())
            {
                int count = Db.SingleInteger("SELECT COUNT(*) FROM MS_APPROVAL WHERE SumberID = '" + NoKontrak + "' AND Sumber = '" + Str.Approval("1") + "' AND Status <> 'DONE'");
                if (count == 0)
                {
                    pilih.Visible = false;
                    frm.Visible   = true;

                    Js.Focus(this, nocustomer);
                    nocustomer.Attributes["ondblclick"] = "popDaftarCustomer('a');";

                    Fill();
                    Js.Confirm(this, "Jalankan prosedur Pengalihan Hak?\\nProses ini akan merubah data kepemilikan unit properti.");
                }
                else
                {
                    pilih.Visible = true;
                    feed1.Text    = "<img src='/Media/db.gif' align=absmiddle> "
                                    + "Proses Pengalihan Hak untuk Kontrak tersebut belum selesai.";
                    feed1.Attributes["style"] = "background-color:white;color:red;";
                }
            }
        }
Exemplo n.º 20
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!IsPostBack)
            {
                nokontrak.Attributes["ondblclick"] = "popDaftarKontrak('a&kpr=1');";

                if (Request.QueryString["NoKontrak"] != null)
                {
                    nokontrak.Text = Request.QueryString["NoKontrak"];
                    LoadKontrak();
                }
                else
                {
                    Js.Focus(this, nokontrak);
                    frm.Visible = false;
                }
            }

            FeedBack();
            if (frm.Visible)
            {
                Js.Confirm(this, "Lanjutkan proses pencatatan aktivitas Edit OTS?");
            }
        }
Exemplo n.º 21
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Page.IsPostBack)
            {
                Js.Focus(this, nokontrak);
                nokontrak.Attributes["ondblclick"] = "popDaftarKontrak('a');";
                frm.Visible = false;
                tglgn.Text  = Cf.Day(DateTime.Today);
            }
            string Project = Db.SingleString("SELECT Project FROM MS_KONTRAK WHERE NoKontrak = '" + NoKontrak + "'");

            btnpop2.Attributes.Add("modal-url", "DaftarCustomer.aspx?status=a&project=" + Project);
            FeedBack();
            if (frm.Visible)
            {
                Js.Confirm(this, "Jalankan prosedur Pengalihan Hak?\\nProses ini akan merubah data kepemilikan unit properti.");
            }

            if (Request.QueryString["NoKontrak"] != null)
            {
                pilih.Visible     = false;
                frm.Visible       = true;
                nokontrak.Text    = Request.QueryString["NoKontrak"];
                nocustomer.Text   = Request.QueryString["NoCustomer"];
                namacustomer.Text = Request.QueryString["Nama"];
                Func.KontrakHeader(Request.QueryString["NoKontrak"], nokontrakl, unit, customer, agent);
                Fill();
            }
        }
Exemplo n.º 22
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Page.IsPostBack)
            {
                backbtn.Visible = false;
                nobg.Attributes["ondblclick"] = "popDaftarBG('bad');";

                if (Request.QueryString["NoBG"] != null)
                {
                    dariReminder.Checked = true;
                    nobg.Text            = Request.QueryString["NoBG"];
                    LoadBG();

                    cancel.Attributes["onclick"] = "location.href='ReminderBGBad.aspx'";
                }
                else
                {
                    Js.Focus(this, nobg);
                    frm.Visible = false;
                }
            }

            FeedBack();
            if (frm.Visible)
            {
                Js.Confirm(this, "Lanjutkan proses penggantian cek giro?");
            }
        }
Exemplo n.º 23
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Page.IsPostBack)
            {
                backbtn.Visible = false;
                nokontrak.Attributes["ondblclick"] = "popDaftarKontrak('a');";

                if (Request.QueryString["NoKontrak"] != null)
                {
                    dariDaftar.Checked = true;
                    nokontrak.Text     = Request.QueryString["NoKontrak"];
                    LoadKontrak();

                    cancel.Attributes["onclick"] = "location.href='KontrakDaftar3.aspx?NoKontrak=" + NoKontrak + "'";
                }
                else
                {
                    Js.Focus(this, nokontrak);
                    frm.Visible = false;
                }
            }

            FeedBack();
            if (frm.Visible)
            {
                Js.Confirm(this, "Lanjutkan proses reset jadwal tagihan?");
            }
        }
Exemplo n.º 24
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!IsPostBack)
            {
                nokontrak.Attributes["ondblclick"] = "popDaftarKontrak('a&kpr=1');";

                if (Request.QueryString["NoKontrak"] != null)
                {
                    nokontrak.Text = Request.QueryString["NoKontrak"];
                    LoadKontrak();
                }
                else
                {
                    Js.Focus(this, nokontrak);
                    frm.Visible = false;
                }

                nilai.Attributes["onfocus"] = "tempnum=CalcFocus(this);tempx=this.value";
                nilai.Attributes["onkeyup"] = "CalcType(this,tempnum);";
                nilai.Attributes["onblur"]  = "CalcBlur(this);";
            }
            FeedBack();
            if (frm.Visible)
            {
                Js.Confirm(this, "Lanjutkan proses pencatatan aktivitas Edit Akad?");
            }
        }
Exemplo n.º 25
0
        protected void search_Click(object sender, System.EventArgs e)
        {
            isi.Attributes["style"] = "display:;";
            Fill();

            FeedBack();
            Js.Confirm(this, "Lanjutkan dengan proses Posting Accounting?");
        }
Exemplo n.º 26
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            Js.Confirm(this, "Lanjutkan proses upload data pengelola cek giro?");
            feed.Text = "";
        }
Exemplo n.º 27
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     Act.Pass();
     Act.NoCache();
     Bind();
     Js.Confirm(this, "Lanjutkan proses upload data customer?");
     feedaa.Text = "";
 }
Exemplo n.º 28
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            FillTable();
            Js.Confirm(this, "Lanjutkan proses edit alokasi pelunasan?");
        }
Exemplo n.º 29
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            Js.Confirm(this, "Lanjutkan proses upload data zoning unit properti?");
            feed.Text = "";
        }
Exemplo n.º 30
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            Js.Confirm(this, "Lanjutkan proses upload slip setoran?");
            feed.Text = "";
        }