Example #1
0
        private void MouseClick()
        {
            if (SelectedGrid == null || !TFCMODEL.PartNo.IsNotNullOrEmpty())
            {
                return;
            }

            string allow = tfcbll.GetRoute(TFCMODEL);

            if (SelectedGrid["Consideration"].ToString() == "Can the product be manufactured without incurring any unusual:")
            {
                return;
            }
            else if (SelectedGrid["Consideration"].ToString() == "Where statistical process control is used on similar products :")
            {
                return;
            }

            if (allow == "NO" && SelectedGrid["Consideration"].ToString() == "8. Is statistical process control presently used on similar products ?")
            {
                ShowInformationMessage("Special character(s) Found For this Part NO ,So User Entry is Denied for This Query!!!");
                return;
            }

            SelectedGrid.BeginEdit();
            if (SelectedGrid["Yes_No"].ToString() == "")
            {
                SelectedGrid["Yes_No"] = "X";
            }
            else
            {
                SelectedGrid["Yes_No"] = "";
            }
            SelectedGrid.EndEdit();

            if (SelectedGrid["Consideration"].ToString() == "8. Is statistical process control presently used on similar products ?")
            {
                if (SelectedGrid["Yes_No"].ToString() == "X")
                {
                    for (int i = 12; i <= 14; i++)
                    {
                        TFCMODEL.GRIDLOAD.Table.Rows[i]["Visible"] = "False";
                    }
                }
                else
                {
                    for (int i = 12; i <= 14; i++)
                    {
                        TFCMODEL.GRIDLOAD.Table.Rows[i]["Visible"] = "True";
                    }
                }
            }
        }
Example #2
0
        private void MouseClick()
        {
            if (SelectedGrid == null || !TFCMODEL.PartNo.IsNotNullOrEmpty())
            {
                return;
            }

            if (SelectedGrid["Consideration"].ToString() == "Can the product be manufactured without incurring any unusual:")
            {
                return;
            }
            SelectedGrid.BeginEdit();
            if (SelectedGrid["Yes_No"].ToString() == "")
            {
                SelectedGrid["Yes_No"] = "X";
            }
            else if (SelectedGrid["Yes_No"].ToString() == "X")
            {
                SelectedGrid["Yes_No"] = "";
            }
            SelectedGrid.EndEdit();
        }