Exemple #1
0
        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            LinkButton btn = sender as LinkButton;

            if (btn != null)
            {
                DINInList.Remove(btn.CommandArgument);
                DataListDINIn.DataBind();
            }
        }
Exemple #2
0
        protected void btnDINRemove_Click(object sender, ImageClickEventArgs e)
        {
            ImageButton btn = sender as ImageButton;

            if (btn != null)
            {
                DINInList.Remove(btn.CommandArgument);
                DataListDINIn.DataBind();
            }
        }
Exemple #3
0
        protected void btnReset_Click(object sender, EventArgs e)
        {
            ProductCodeInList.Clear();
            DataListProductIn.DataBind();

            GridViewVolume.DataBind();

            DINInList.Clear();
            DataListDINIn.DataBind();

            rdbDINIn.Checked         = false;
            rdbProductCodeIn.Checked = true;
        }
Exemple #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string code = Master.TextBoxCode.Text.Trim();

            Master.TextBoxCode.Text = "";

            if (code.Length == 0)
            {
                return;
            }


            if (rdbProductCodeIn.Checked)
            {
                if (BarcodeBLL.IsValidProductCode(code))
                {
                    ProductCodeInList = productionBLL.AddProductCodeIn(BarcodeBLL.ParseProductCode(code));
                    DataListProductIn.DataBind();
                }
            }
            else if (rdbProductCodeOut.Checked)
            {
                if (BarcodeBLL.IsValidProductCode(code))
                {
                    ProductCodeOutList = productionBLL.AddProductCodeOut(BarcodeBLL.ParseProductCode(code));
                    DataListProductOut.DataBind();
                }
            }
            else if (rdbDINIn.Checked)
            {
                if (BarcodeBLL.IsValidDINCode(code))
                {
                    DINInList = productionBLL.AddDIN(BarcodeBLL.ParseDIN(code));
                    DataListDINIn.DataBind();
                }
            }
        }
Exemple #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string code = Master.TextBoxCode.Text.Trim();

            Master.TextBoxCode.Text = "";

            if (code.Length == 0)
            {
                return;
            }


            if (rdbProductCodeIn.Checked)
            {
                if (BarcodeBLL.IsValidProductCode(code))
                {
                    ProductCodeInList = productionBLL.AddProductCodeIn4Divide(BarcodeBLL.ParseProductCode(code));
                    DataListProductIn.DataBind();

                    GridViewVolume.DataSource = ProductionBLL.GetDivideList(code).Select(r => new
                    {
                        Division = r,
                        Volume   = "",
                    });
                    GridViewVolume.DataBind();
                }
            }
            else if (rdbDINIn.Checked)
            {
                if (BarcodeBLL.IsValidDINCode(code))
                {
                    DINInList = productionBLL.AddDIN4Divide(BarcodeBLL.ParseDIN(code));
                    DataListDINIn.DataBind();
                }
            }
        }