예제 #1
0
        private void button4_Click_1(object sender, EventArgs e)
        {
            if (TxtModule.Text == "MRM")
            {
                MaterialRequestMain formTask = new MaterialRequestMain();

                this.Dispose();
                formTask.Show();


                formTask.Test(txtMRMNO.Text.ToString());
                formTask.GetUserID(TxtUserID.Text);
            }
            else
            {
                Material_Releasing_Main formTask = new Material_Releasing_Main();
                formTask.GetUserID(TxtUserID.Text);
                formTask.Retrieverequest(txtMRMNO.Text.ToString());

                formTask.GetTranType(txttrantype.Text.ToString());


                this.Dispose();
                formTask.Show();
            }
        }
예제 #2
0
        private void linkLabel23_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            MaterialRequestMain ItemMaster = new MaterialRequestMain();

            ItemMaster.GetUserID(TxtUserID.Text);

            ItemMaster.Show();
        }
        private void dataGridView3_DoubleClick(object sender, EventArgs e)
        {
            var index = dataGridView3.CurrentRow.Cells[0].Value.ToString();
            MaterialRequestMain formTask = new MaterialRequestMain();

            formTask.GetMRMID(index.ToString(), "MRI");
            formTask.GetUserID(TxtUserID.Text);
            formTask.Show();
            this.Dispose();
        }
예제 #4
0
        private void ItemMasterLookUp_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (TxtModule.Text != "PMF")
            {
                MaterialRequestMain formTask = new MaterialRequestMain();
                formTask.GetUserID(TxtUserID.Text);
                this.Dispose();
                formTask.Show();


                formTask.Test(txtMRMNO.Text.ToString());
            }
        }
예제 #5
0
        //   public delegate void IdentityUpdateHandler(object sender, IdentityUpdateEventArgs e);



        //  public event StallionSuppyChain.Procurement.MaterialRequestMain.AddressUpdateHandler AddressUpdated;

        private void button2_Click(object sender, EventArgs e)
        {
            for (int i = 0; i < dataGridView1.RowCount; i++)
            {
                // var index = dataGridView1.CurrentRow.Cells[0].Value.ToString();
                string Value1       = dataGridView1.Rows[i].Cells[1].Value.ToString();
                string Value2       = dataGridView1.Rows[i].Cells[2].Value.ToString();
                string ID           = dataGridView1.Rows[i].Cells[13].Value.ToString();
                string DefaultPrice = dataGridView1.Rows[i].Cells[12].Value.ToString();

                if (TxtModule.Text == "MRM")
                {
                    SaveMateriealRequest(Convert.ToInt32(txtMRMNO.Text.ToString()), Convert.ToInt32(ID), Value1, Convert.ToInt32(TxtUserID.Text), Value2);
                }
                if (TxtModule.Text == "MRI" || TxtModule.Text == "TRP" || TxtModule.Text == "TRM")
                {
                    SaveMRIRequest(Convert.ToInt32(txtMRMNO.Text.ToString()), Convert.ToInt32(ID), Value1, Convert.ToInt32(TxtUserID.Text), Value2, DefaultPrice);
                }
            }

            if (TxtModule.Text == "PMF") //Product Master File
            {
                this.DialogResult = DialogResult.OK;
                this.Close();
            }

            if (TxtModule.Text == "MRM")
            {
                MaterialRequestMain formTask = new MaterialRequestMain();
                formTask.GetUserID(TxtUserID.Text);
                this.Dispose();
                formTask.Show();


                formTask.Test(txtMRMNO.Text.ToString());
            }

            if (TxtModule.Text == "MRI" || TxtModule.Text == "TRP" || TxtModule.Text == "TRM")
            {
                Material_Releasing_Main formTask = new Material_Releasing_Main();
                formTask.GetUserID(TxtUserID.Text);
                this.Dispose();
                formTask.Show();

                formTask.GetTranType(txttrantype.Text.ToString());

                formTask.Retrieverequest(txtMRMNO.Text.ToString());
            }
        }