Пример #1
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            //abcd.HRef = "?k=abcd&project=" + project.SelectedValue;

            if (!Page.IsPostBack)
            {
                Act.ProjectList(project);
                Js.Focus(this, search);

                if (Request.QueryString["k"] != null)
                {
                    Fill(Request.QueryString["project"]);
                    project.SelectedValue = Request.QueryString["project"];
                }
                //else
                //{
                //    Fill(project.SelectedValue);
                //}
            }
            abcd.HRef = "?k=abcd&project=" + project.SelectedValue;
            efgh.HRef = "?k=efgh&project=" + project.SelectedValue;
            ijkl.HRef = "?k=ijkl&project=" + project.SelectedValue;
            mnop.HRef = "?k=mnop&project=" + project.SelectedValue;
            qrst.HRef = "?k=qrst&project=" + project.SelectedValue;
            uvwx.HRef = "?k=uvwx&project=" + project.SelectedValue;
            yz09.HRef = "?k=yz09&project=" + project.SelectedValue;
        }
Пример #2
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Page.IsPostBack)
            {
                Js.Focus(this, userid);

                bindSecLevel();
                bindAgent();

                //Password awal
                pass.Text = Cf.Random(5);

                //Daftar 10 terbaru
                Fill();
            }

            FeedBack();

            ClientScript.RegisterOnSubmitStatement(
                GetType()
                , "submitScript"
                , "document.getElementById('passMD5').value=hex_md5(document.getElementById('pass').value);"
                );
        }
Пример #3
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."
                           );
            }
        }
Пример #4
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?");
            }
        }
Пример #5
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("5") + "' AND Status <> 'DONE'");
                if (count == 0)
                {
                    pilih.Visible = false;
                    frm.Visible   = true;

                    InitForm();
                    Fill();

                    Js.Focus(this, disc);
                }
                else
                {
                    pilih.Visible = true;
                    feed.Text     = "<img src='/Media/db.gif' align=absmiddle> "
                                    + "Proses Adjustment untuk Kontrak tersebut belum selesai.";
                    feed.Attributes["style"] = "background-color:white;color:red;";
                }


                // if(frm.Visible) Js.Confirm(this, "Lanjutkan proses diskon nilai kontrak?");
            }
        }
Пример #6
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?");
            }
        }
Пример #7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

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

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

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

            FeedBack();
            if (frm.Visible)
            {
                Js.Confirm(this, "Lanjutkan dengan proses edit IMB?");
            }
        }
Пример #8
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;";
                }
            }
        }
Пример #9
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?");
            }
        }
Пример #10
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);
            }
        }
Пример #11
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 LPA?");
            }
        }
Пример #12
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?");
            }
        }
Пример #13
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');";
                fillAcc();

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

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

            FeedBack();
            if (frm.Visible)
            {
                Js.Confirm(this, "Lanjutkan proses pencatatan Cashback?");
            }
        }
Пример #14
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();

            Js.Focus(this, keyword);
            Js.ConfirmKeyword(this, keyword);
        }
Пример #15
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();
            Func.UnitSedangClosing(NoStock);

            if (!Page.IsPostBack)
            {
                nocustomer.Attributes["ondblclick"] = "popDaftarCustomer('a')";

                InitForm();
                Fill();

                divPersenBertingkat.Visible = false;
                divLumpSum.Visible          = true;

                if (Request.QueryString["NoCustomer"] != null)
                {
                    nocustomer.Text = Request.QueryString["NoCustomer"];
                    LoadCustomer();
                }
                else
                {
                    Js.Focus(this, nocustomer);
                    frm.Visible = false;
                }
                nostock.Text = NoStock;
            }
            string Project = Db.SingleString("SELECT Project FROM MS_UNIT WHERE NoStock = '" + NoStock + "'");

            btnpop.Attributes.Add("modal-url", "DaftarCustomer.aspx?status=a&project=" + Project);
        }
Пример #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."
                           );
            }
        }
Пример #17
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."
                           );
            }
        }
Пример #18
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();
        }
Пример #19
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();
            }
        }
Пример #20
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."
                           );
            }
        }
Пример #21
0
 protected void Page_Load(object sender, EventArgs e)
 {
     comp.InnerHtml = Mi.Pt;
     rpt.Visible    = false;
     Js.Focus(this, scr);
     init();
     rpt.Style["border-collapse"] = "collapse";
 }
Пример #22
0
        private void Bind()
        {
            Js.Focus(this, nama);

            dari.Text   = Cf.Day(Cf.AwalBulan(DateTime.Now.Month, DateTime.Now.Year));
            sampai.Text = Cf.Day(Cf.AkhirBulan(DateTime.Now.Month, DateTime.Now.Year));

            LibMkt.ListTipeSales(tipe, project.SelectedValue);
        }
Пример #23
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            if (!Page.IsPostBack)
            {
                if (Request.QueryString["project"] == null)
                {
                    Act.ProjectList(project);
                }
                else
                {
                    string v        = Request.QueryString["project"].ToString();
                    string nproject = Db.SingleString("SELECT Nama FROM " + Mi.DbPrefix + "SECURITY..REF_PROJECT WHERE Project='" + v + "'");
                    //Response.Write("SELECT Nama FROM " + Mi.DbPrefix + "SECURITY..REF_PROJECT WHERE Project='" + v + "'");
                    string t = v + " - " + nproject;
                    project.Items.Add(new ListItem(t, v));
                }

                //kalkulator
                luaslama.Attributes["onfocus"] = "tempnum=CalcFocus(this);";
                luaslama.Attributes["onkeyup"] = "CalcType(this,tempnum);";
                luaslama.Attributes["onblur"]  = "CalcBlur(this);";

                if (Request.QueryString["NoStock"] != null)
                {
                    if (Request.QueryString["reserve"] != null)
                    {
                        dariReservasi.Checked        = true;
                        cancel.Attributes["onclick"] = "location.href='ReservasiDaftar2.aspx"
                                                       + "?NoStock=" + Request.QueryString["NoStock"] + "'";
                    }
                    else if (Request.QueryString["closing"] != null)
                    {
                        dariClosing.Checked          = true;
                        cancel.Attributes["onclick"] = "location.href='ClosingLangsungDaftar2.aspx"
                                                       + "?NoStock=" + Request.QueryString["NoStock"] + "'";
                    }
                    else if (Request.QueryString["NoUrut"] != null)
                    {
                        dariClosing.Checked = true;
                        cancel.Visible      = false;
                        FillReservasi();
                    }
                }
                else
                {
                    cancel.Visible = false;
                }

                Js.Focus(this, nama);
                Fill();
            }
            FeedBack();
        }
Пример #24
0
        protected void tipeCheck_CheckedChanged(object sender, System.EventArgs e)
        {
            for (int i = 0; i < tipe.Items.Count; i++)
            {
                tipe.Items[i].Selected = tipeCheck.Checked;
            }

            Js.Focus(this, tipeCheck);
            tipec.Text = "";
        }
Пример #25
0
        protected void next_Click(object sender, System.EventArgs e)
        {
            pilih.Visible = false;
            frm.Visible   = true;

            FillDataReservasi();

            Js.Focus(this, tglkontrak);
            Js.Confirm(this, "Lanjutkan proses pendaftaran surat pesanan?");
        }
Пример #26
0
        protected void aktivitasCheck_CheckedChanged(object sender, System.EventArgs e)
        {
            for (int i = 0; i < aktivitas.Items.Count; i++)
            {
                aktivitas.Items[i].Selected = aktivitasCheck.Checked;
            }

            Js.Focus(this, aktivitasCheck);
            aktivitasc.Text = "";
        }
Пример #27
0
        protected void jenisCheck_CheckedChanged(object sender, System.EventArgs e)
        {
            for (int i = 0; i < jenis.Items.Count; i++)
            {
                jenis.Items[i].Selected = jenisCheck.Checked;
            }

            Js.Focus(this, jenisCheck);
            jenisc.Text = "";
        }
Пример #28
0
        protected void carabayarCheck_CheckedChanged(object sender, EventArgs e)
        {
            for (int i = 0; i < carabayar.Items.Count; i++)
            {
                carabayar.Items[i].Selected = carabayarCheck.Checked;
            }

            Js.Focus(this, carabayarCheck);
            carabayarc.Text = "";
        }
Пример #29
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            Act.Pass();
            Act.NoCache();

            Js.Confirm(this, "Lanjutkan proses upload peta dasar?");

            Js.Focus(this, namapeta);
            feed.Text = "";
        }
Пример #30
0
        protected void namaCheck_CheckedChanged(object sender, System.EventArgs e)
        {
            for (int i = 0; i < nama.Items.Count; i++)
            {
                nama.Items[i].Selected = namaCheck.Checked;
            }

            Js.Focus(this, namaCheck);
            namac.Text = "";
        }