Example #1
0
        private void servicingprojectSearch_ButtonClick(object sender, EventArgs e)
        {
            servicingprojectSearch.Text = servicingprojectSearch.Text.Replace("'", "`").Trim();
            servicingprojectSearch.Text = servicingprojectSearch.Text.Replace("\"", "``").Trim();

            ServicingClass c   = new ServicingClass(this, NSF);
            string         con = " where b.project like '%" + servicingprojectSearch.Text + "%' ";

            c.loadservicingtb(con);
        }
Example #2
0
        private void deleteBTN_Click(object sender, EventArgs e)
        {
            if (MetroMessageBox.Show(this, "Do you want to delete this record?", "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
            {
                return;
            }
            ServicingClass c = new ServicingClass(frm1, this);

            c.deleteservicingsched(tempid, tempcin);
        }
Example #3
0
        private void updateBTN_Click(object sender, EventArgs e)
        {
            cleanentry();
            ServicingClass c = new ServicingClass(frm1, this);

            c.updateservicing(tempid, tempcin, servicingdate.Text,
                              assignedpersonnelTXT.Text, assigneesreportTXT.Text,
                              doneTXT.Text, remarksTXT.Text,
                              forschedTXT.Text, forcostingTXT.Text,
                              forquotationTXT.Text);
        }
Example #4
0
 private void MetroTabControl1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (MetroTabControl1.SelectedIndex == 1)
     {
         if (firstload == false)
         {
         }
         else
         {
             CallinTableClass b = new CallinTableClass(this);
             b.loadcallintb();
             firstload = false;
         }
     }
     else if (MetroTabControl1.SelectedIndex == 2)
     {
         if (firstloadservicing == false)
         {
         }
         else
         {
             ServicingClass c = new ServicingClass(this, NSF);
             c.loadservicingtb("");
             firstloadservicing = false;
         }
     }
     else if (MetroTabControl1.SelectedIndex == 3)
     {
         if (firstloadqu == false)
         {
         }
         else
         {
             quClass q = new quClass(this, quf);
             q.loadquotaiontb("");
             firstloadqu = false;
         }
     }
 }
Example #5
0
        private void servicingrefreshBTN_Click(object sender, EventArgs e)
        {
            ServicingClass c = new ServicingClass(this, NSF);

            c.loadservicingtb("");
        }
Example #6
0
        private void newSrevicingFRM_Load(object sender, EventArgs e)
        {
            ServicingClass c = new ServicingClass(frm1, this);

            c.loadnewservicing(tempcin);
        }