Esempio n. 1
0
        private void radIndividual_Click(object sender, EventArgs e)
        {
            if ((radGroupwise.Checked == true) && (radIndividual.Checked == true))
            {
                label5.Visible      = true;
                dteFromDate.Visible = true;
                label1.Text         = "To";
                label5.Text         = "From";
                groupBox6.Text      = "Period Seletion";
            }
            if ((radLedgerW.Checked == true) && (radIndividual.Checked == true))
            {
                label5.Visible = true;

                dteFromDate.Visible = true;
                groupBox6.Visible   = false;
            }

            uctxtLedgerConfig.Visible = true;
            uctxtLedgerConfig.Text    = "";
            DGMr.Top    = uctxtLedgerConfig.Top + 25;
            DGMr.Left   = uctxtLedgerConfig.Left;
            DGMr.Width  = uctxtLedgerConfig.Width;
            DGMr.Height = 200;
            DGMr.BringToFront();
            DGMr.AllowUserToAddRows = false;

            uctxtLedgerConfig.Focus();
        }
Esempio n. 2
0
        private void dteToDate_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Return)
            {
                if (radAll.Checked == true)
                {
                    btnPrint.Focus();
                }
                else
                {
                    uctxtMedicalRep.Focus();
                    uctxtMedicalRep.Visible = true;
                    uctxtMedicalRep.Text    = "";
                    DGMr.Top    = uctxtMedicalRep.Top + 25;
                    DGMr.Left   = uctxtMedicalRep.Left;
                    DGMr.Width  = uctxtMedicalRep.Width;
                    DGMr.Height = 200;
                    DGMr.BringToFront();
                    DGMr.Visible            = true;
                    DGMr.AllowUserToAddRows = false;
                }

                //uctxtMedicalRep.Focus();
            }
        }
Esempio n. 3
0
        private void radIndividual_Click(object sender, EventArgs e)
        {
            lstBranch.Visible = false;
            if (strSelection == "Sales")
            {
                lblMpoName.Visible  = true;
                uctxtMrName.Visible = true;
                uctxtMrName.Focus();
            }
            else
            {
                lblMpoName.Visible  = true;
                lblMpoName.Text     = "ledger Name";
                uctxtMrName.Visible = true;
                DGMr.Visible        = false;
                lstMrName.Visible   = false;
                uctxtMrName.Focus();
            }

            DGMr.Top    = uctxtMrName.Top + 25;
            DGMr.Left   = uctxtMrName.Left;
            DGMr.Width  = uctxtMrName.Width;
            DGMr.Height = 200;
            DGMr.BringToFront();
            DGMr.Visible            = true;
            DGMr.AllowUserToAddRows = false;
        }
Esempio n. 4
0
        private void uctxtLedgerConfig_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Return)
            {
                if (uctxtLedgerConfig.Text == "")
                {
                    uctxtLedgerConfig.Text = "";
                    if (DGMr.Rows.Count > 0)
                    {
                        int i = 0;
                        DGMr.Visible = true;
                    }

                    DGMr.Visible = false;

                    return;
                }


                if (uctxtLedgerConfig.Text != "")
                {
                    DGMr.Focus();
                    if (DGMr.Rows.Count > 0)
                    {
                        int i = 0;
                        uctxtTerritoryCode.Text = DGMr.Rows[i].Cells[0].Value.ToString();
                        uctxtTeritorryName.Text = DGMr.Rows[i].Cells[1].Value.ToString();
                        uctxtLedgerConfig.Text  = DGMr.Rows[i].Cells[2].Value.ToString();
                        DGMr.Visible            = false;
                        if (chkboxClosing.Checked == true)
                        {
                            btnPrint.Focus();
                        }
                        else
                        {
                            dteFromDate.Focus();
                        }
                    }
                }
                else
                {
                    int i = 0;

                    uctxtTerritoryCode.Text = DGMr.Rows[i].Cells[0].Value.ToString();
                    uctxtTeritorryName.Text = DGMr.Rows[i].Cells[1].Value.ToString();
                    uctxtLedgerConfig.Text  = DGMr.Rows[i].Cells[2].Value.ToString();
                    DGMr.Visible            = false;
                    if (chkboxClosing.Checked == true)
                    {
                        btnPrint.Focus();
                    }
                    else
                    {
                        dteFromDate.Focus();
                    }
                }
            }
        }
Esempio n. 5
0
        private void uctxtMrName_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Return)
            {
                if (uctxtMrName.Text == "")
                {
                    uctxtMrName.Text = "";
                    if (DGMr.Rows.Count > 0)
                    {
                        int i = 0;
                        DGMr.Visible = true;
                    }

                    DGMr.Visible = false;

                    return;
                }
                if (uctxtMrName.Text != "")
                {
                    DGMr.Focus();
                    if (DGMr.Rows.Count > 0)
                    {
                        int i = 0;
                        uctxtTerritoryCode.Text = DGMr.Rows[i].Cells[0].Value.ToString();
                        uctxtTeritorryName.Text = DGMr.Rows[i].Cells[1].Value.ToString();
                        uctxtMrName.Text        = DGMr.Rows[i].Cells[2].Value.ToString();
                        DGMr.Visible            = false;

                        if (chePartySelction.Checked == true)
                        {
                            uctxtCustomer.Focus();
                        }
                        else
                        {
                            dteFromDate.Focus();
                        }
                    }
                }
                else
                {
                    int i = 0;

                    uctxtTerritoryCode.Text = DGMr.Rows[i].Cells[0].Value.ToString();
                    uctxtTeritorryName.Text = DGMr.Rows[i].Cells[1].Value.ToString();
                    uctxtMrName.Text        = DGMr.Rows[i].Cells[2].Value.ToString();
                    DGMr.Visible            = false;
                    if (chePartySelction.Checked == true)
                    {
                        uctxtCustomer.Focus();
                    }
                    else
                    {
                        dteFromDate.Focus();
                    }
                }
            }
        }
        private void uctxtMedicalRep_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Return)
            {
                if (uctxtMedicalRep.Text == "")
                {
                    uctxtMedicalRep.Text = "";
                    if (DGMr.Rows.Count > 0)
                    {
                        int i = 0;
                        DGMr.Visible = true;
                    }

                    DGMr.Visible = false;

                    return;
                }
                if (uctxtMedicalRep.Text != "")
                {
                    if (radGroup.Checked == true)
                    {
                        DGMr.Focus();
                        if (DGMr.Rows.Count > 0)
                        {
                            int i = 0;

                            uctxtMedicalRep.Text   = DGMr.Rows[i].Cells[2].Value.ToString();
                            uctxtLedgerConfig.Text = DGMr.Rows[i].Cells[2].Value.ToString();
                            DGMr.Visible           = false;
                            txtSearch.Focus();
                        }
                    }
                    else
                    {
                        int i = 0;
                        uctxtTerritoryCode.Text = DGMr.Rows[i].Cells[0].Value.ToString();
                        uctxtTeritorryName.Text = DGMr.Rows[i].Cells[1].Value.ToString();
                        uctxtMedicalRep.Text    = DGMr.Rows[i].Cells[3].Value.ToString();
                        uctxtLedgerConfig.Text  = DGMr.Rows[i].Cells[2].Value.ToString();
                        DGMr.Visible            = false;
                        txtSearch.Focus();
                    }
                }
                else
                {
                    int i = 0;

                    uctxtTerritoryCode.Text = DGMr.Rows[i].Cells[0].Value.ToString();
                    uctxtTeritorryName.Text = DGMr.Rows[i].Cells[1].Value.ToString();
                    uctxtMedicalRep.Text    = DGMr.Rows[i].Cells[2].Value.ToString();
                    DGMr.Visible            = false;
                    txtSearch.Focus();;
                }
            }
        }
Esempio n. 7
0
        private void uctxtMrName_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Return)
            {
                if (uctxtMrName.Text == "")
                {
                    uctxtMrName.Text = "";
                    if (DGMr.Rows.Count > 0)
                    {
                        int i = 0;
                        DGMr.Visible = true;
                    }

                    DGMr.Visible = false;

                    return;
                }
                if (uctxtMrName.Text != "")
                {
                    DGMr.Focus();
                    if (DGMr.Rows.Count > 0)
                    {
                        int i = 0;
                        //uctxtTerritoryCode.Text = DGMr.Rows[i].Cells[0].Value.ToString();
                        if (strSelection == "SalesReg")
                        {
                            uctxtMrName.Text = DGMr.Rows[i].Cells[1].Value.ToString();
                        }
                        else
                        {
                            uctxtMrName.Text = DGMr.Rows[i].Cells[2].Value.ToString();
                        }
                        //uctxtTeritorryName.Text = DGMr.Rows[i].Cells[2].Value.ToString();
                        DGMr.Visible = false;
                        btnPrint.Focus();
                    }
                }
                else
                {
                    int i = 0;
                    if (strSelection == "SalesReg")
                    {
                        uctxtMrName.Text = DGMr.Rows[i].Cells[1].Value.ToString();
                    }
                    else
                    {
                        uctxtMrName.Text = DGMr.Rows[i].Cells[2].Value.ToString();
                    }
                    //uctxtTeritorryName.Text = DGMr.Rows[i].Cells[2].Value.ToString();
                    DGMr.Visible = false;
                    btnPrint.Focus();
                }
                lstMrName.Visible = false;
            }
        }
 private void uctxtLedgerConfig_GotFocus(object sender, System.EventArgs e)
 {
     DGMr.Top    = uctxtLedgerConfig.Top + 25;
     DGMr.Left   = uctxtLedgerConfig.Left;
     DGMr.Width  = uctxtLedgerConfig.Width;
     DGMr.Height = 200;
     DGMr.BringToFront();
     DGMr.AllowUserToAddRows = false;
     DGMr.Visible            = true;
     mloadParty();
 }
Esempio n. 9
0
 private void radIndividual_Click(object sender, EventArgs e)
 {
     lstMonthID.Visible        = false;
     uctxtLedgerConfig.Visible = true;
     uctxtLedgerConfig.Text    = "";
     DGMr.Top    = uctxtLedgerConfig.Top + 25;
     DGMr.Left   = uctxtLedgerConfig.Left;
     DGMr.Width  = uctxtLedgerConfig.Width;
     DGMr.Height = 200;
     DGMr.BringToFront();
     DGMr.AllowUserToAddRows = false;
     uctxtLedgerConfig.Focus();
 }
Esempio n. 10
0
 private void uctxtLedgerConfig_KeyDown(object sender, KeyEventArgs e)
 {
     DGMr.Visible = true;
     if (e.KeyCode == Keys.Up)
     {
         DGMr.Focus();
     }
     if (e.KeyCode == Keys.Down)
     {
         DGMr.Focus();
     }
     return;
 }
 private void radIndividual_Click(object sender, EventArgs e)
 {
     lblMpoName.Visible  = true;
     uctxtMrName.Visible = true;
     lstMrName.Visible   = false;
     DGMr.Top            = uctxtMrName.Top + 25;
     DGMr.Left           = uctxtMrName.Left;
     DGMr.Width          = uctxtMrName.Width;
     DGMr.Height         = 200;
     DGMr.Visible        = true;
     DGMr.BringToFront();
     DGMr.AllowUserToAddRows = false;
     uctxtMrName.Focus();
 }
        private void radMR_Click(object sender, EventArgs e)
        {
            labCatname.Text  = "MPO:";
            labCatname.Left  = 20;
            uctxtMrName.Text = "";

            DGMr.Top    = uctxtMrName.Top + 25;
            DGMr.Left   = uctxtMrName.Left;
            DGMr.Width  = uctxtMrName.Width;
            DGMr.Height = 200;
            DGMr.BringToFront();
            DGMr.AllowUserToAddRows = false;
            DGMr.Visible            = true;
            uctxtMrName.Focus();
        }
Esempio n. 13
0
 private void rbtnIndividualParty_Click(object sender, EventArgs e)
 {
     uctxtMrName.Visible = true;
     label4.Visible      = true;
     uctxtMrName.Focus();
     label4.Text         = "MPO Name";
     uctxtMrName.Visible = true;
     uctxtMrName.Text    = "";
     DGMr.Top            = uctxtMrName.Top + 25;
     DGMr.Left           = uctxtMrName.Left;
     DGMr.Width          = uctxtMrName.Width;
     DGMr.Height         = 200;
     DGMr.BringToFront();
     DGMr.AllowUserToAddRows = false;
     uctxtMrName.Focus();
 }
Esempio n. 14
0
        private void radIndividual_Click(object sender, EventArgs e)
        {
            //lstMrName.ValueMember = "strLedgerName";
            //lstMrName.DisplayMember = "strLedgerName";
            //lstMrName.DataSource = accms.mFillLedgerStatus(strComID, (int)Utility.GR_GROUP_TYPE.grCUSTOMER, intStatus).ToList();

            uctxtLedgerConfig.Visible = true;
            uctxtLedgerConfig.Text    = "";
            DGMr.Top    = uctxtLedgerConfig.Top + 25;
            DGMr.Left   = uctxtLedgerConfig.Left;
            DGMr.Width  = uctxtLedgerConfig.Width;
            DGMr.Height = 200;
            DGMr.BringToFront();
            DGMr.AllowUserToAddRows = false;
            uctxtLedgerConfig.Focus();
        }
Esempio n. 15
0
 private void radIndividual_Click(object sender, EventArgs e)
 {
     viiissibaleTrue();
     groupboxMpoFMRSM.Enabled = false;
     lblMpoName.Visible       = true;
     uctxtMedicalRep.Visible  = true;
     uctxtMedicalRep.Text     = "";
     DGMr.Top    = uctxtMedicalRep.Top + 25;
     DGMr.Left   = uctxtMedicalRep.Left;
     DGMr.Width  = uctxtMedicalRep.Width;
     DGMr.Height = 200;
     DGMr.BringToFront();
     DGMr.Visible            = true;
     DGMr.AllowUserToAddRows = false;
     lstCustomerGroupname.Show();
     mloadParty();
     uctxtMedicalRep.Focus();
 }
Esempio n. 16
0
 private void uctxtMrName_KeyDown(object sender, KeyEventArgs e)
 {
     DGMr.Visible = true;
     if (e.KeyCode == Keys.Up)
     {
         DGMr.Focus();
     }
     if (e.KeyCode == Keys.Down)
     {
         DGMr.Focus();
     }
     DGMr.Top    = uctxtMrName.Top + 25;
     DGMr.Left   = uctxtMrName.Left;
     DGMr.Width  = uctxtMrName.Width;
     DGMr.Height = 200;
     DGMr.BringToFront();
     DGMr.AllowUserToAddRows = false;
     return;
 }
        private void uctxtMedicalRep_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)Keys.Return)
            {
                if (uctxtMedicalRep.Text == "")
                {
                    uctxtDebitAmount.Focus();
                    DGMr.Visible = false;

                    return;
                }


                if (uctxtMedicalRep.Text != "")
                {
                    DGMr.Focus();
                    if (DGMr.Rows.Count > 0)
                    {
                        int i = 0;
                        uctxtTerritoryCode.Text = DGMr.Rows[i].Cells[0].Value.ToString();
                        uctxtTeritorryName.Text = DGMr.Rows[i].Cells[1].Value.ToString();
                        uctxtMedicalRep.Text    = DGMr.Rows[i].Cells[2].Value.ToString();
                        DGMr.Visible            = false;
                        uctxtDebitAmount.Focus();
                    }
                }
                else
                {
                    int i = 0;

                    uctxtTerritoryCode.Text = DGMr.Rows[i].Cells[0].Value.ToString();
                    uctxtTeritorryName.Text = DGMr.Rows[i].Cells[1].Value.ToString();
                    uctxtMedicalRep.Text    = DGMr.Rows[i].Cells[2].Value.ToString();
                    DGMr.Visible            = false;
                    uctxtDebitAmount.Focus();
                }
            }
            if (e.KeyChar == (char)Keys.Back)
            {
                Utility.PriorSetFocusText(uctxtMedicalRep, uctxtBranch);
            }
        }
        private void radIndividual_Click(object sender, EventArgs e)
        {
            panelDes.Visible = true;
            radDesigCat.PerformClick();
            labCatname.Text  = "MPO Group :";
            labCatname.Left  = 20;
            uctxtMrName.Text = "";

            DGMr.Visible        = false;
            labCatname.Visible  = true;
            uctxtMrName.Visible = true;
            DGMr.Top            = uctxtMrName.Top + 25;
            DGMr.Left           = uctxtMrName.Left;
            DGMr.Width          = uctxtMrName.Width;
            DGMr.Height         = 200;
            DGMr.BringToFront();
            DGMr.AllowUserToAddRows = false;
            DGMr.Visible            = true;
            uctxtMrName.Focus();
        }
 private void radIndividual_Click(object sender, EventArgs e)
 {
     uctxtMrName.Visible = true;
     uctxtMrName.Text    = "";
     DGMr.Top            = uctxtMrName.Top + 25;
     DGMr.Left           = uctxtMrName.Left;
     DGMr.Width          = uctxtMrName.Width;
     DGMr.Height         = 200;
     DGMr.BringToFront();
     DGMr.Visible            = true;
     DGMr.AllowUserToAddRows = false;
     cheMPO.Checked          = false;
     txtLess.Text            = "";
     TxtGreater.Text         = "";
     label4.Enabled          = false;
     label6.Enabled          = false;
     txtLess.Enabled         = false;
     TxtGreater.Enabled      = false;
     uctxtMrName.Focus();
 }
Esempio n. 20
0
        private void uctxtLedgerConfig_KeyDown(object sender, KeyEventArgs e)
        {
            DGMr.Visible = true;
            if (e.KeyCode == Keys.Up)
            {
                DGMr.Focus();
            }
            if (e.KeyCode == Keys.Down)
            {
                DGMr.Focus();
            }

            //DGMr.Top = uctxtLedgerConfig.Top + 25;
            //DGMr.Left = uctxtLedgerConfig.Left;
            //DGMr.Width = uctxtLedgerConfig.Width;
            //DGMr.Height = 200;
            //DGMr.BringToFront();
            //DGMr.AllowUserToAddRows = false;
            return;
        }
Esempio n. 21
0
 private void uctxtMedicalRep_KeyDown(object sender, KeyEventArgs e)
 {
     DGMr.Visible = true;
     if (e.KeyCode == Keys.Up)
     {
         DGMr.Focus();
     }
     if (e.KeyCode == Keys.Down)
     {
         DGMr.Focus();
     }
     DGMr.Top    = uctxtMedicalRep.Top + 25;
     DGMr.Left   = uctxtMedicalRep.Left;
     DGMr.Width  = uctxtMedicalRep.Width;
     DGMr.Height = 200;
     DGMr.BringToFront();
     DGMr.AllowUserToAddRows = false;
     lstLeft.Items.Clear();
     lstRight.Items.Clear();
     return;
 }
Esempio n. 22
0
        private void mloadParty()
        {
            int introw = 0;

            DGMr.Rows.Clear();

            ooPartyName = invms.mfillPartyNameNew(strComID, lstBranch.SelectedValue.ToString(), Utility.gblnAccessControl, Utility.gstrUserName, 0, "").ToList();

            if (ooPartyName.Count > 0)
            {
                labCatname.Visible  = true;
                DGMr.Visible        = false;
                uctxtMrName.Visible = true;
                uctxtMrName.Visible = true;
                uctxtMrName.Text    = "";
                DGMr.Top            = uctxtMrName.Top + 25;
                DGMr.Left           = uctxtMrName.Left;
                DGMr.Width          = uctxtMrName.Width;
                DGMr.Height         = 200;
                DGMr.BringToFront();
                DGMr.Visible            = true;
                DGMr.AllowUserToAddRows = false;
                uctxtMrName.Focus();
                DGMr.Columns[2].HeaderText = "MPO Name";
                foreach (Invoice ogrp in ooPartyName)
                {
                    DGMr.Rows.Add();
                    DGMr.Columns[1].Visible = true;
                    DGMr.Columns[0].Visible = true;
                    DGMr[0, introw].Value   = ogrp.strTeritorryCode;
                    DGMr[1, introw].Value   = ogrp.strTeritorryName;
                    DGMr[2, introw].Value   = ogrp.strLedgerName;
                    DGMr[3, introw].Value   = ogrp.strMereString;
                    introw += 1;
                }

                DGMr.AllowUserToAddRows = false;
            }
        }