Ejemplo n.º 1
0
    public int SaveCulpritGroup()
    {
        int GroupID = 0;
        ConfiguratorUI objUI = new ConfiguratorUI();

        objUI.GroupName = txtGroupName.Text.Trim();
        GroupID = objController.SaveCulpritGroup(objUI, null);
        if (GroupID == 0)
        {
            string strjscript = "<script language='javascript' type='text/javascript'>";
            strjscript += " setLabelText('ctl00_ContentPlaceHolder1_lblMessage','group already exists' );";
            strjscript += "</script" + ">";
            literal1.Text = strjscript;
        }
        else
        {
            string strjscript = "<script language='javascript' type='text/javascript'>";
            strjscript += " setLabelText('ctl00_ContentPlaceHolder1_lblMessage','' );";
            strjscript += "</script" + ">";
            literal1.Text = strjscript;
        }
        return GroupID;
    }
Ejemplo n.º 2
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     int GroupID = 0;
     if (rdoNew.Checked)
     {
         GroupID = SaveCulpritGroup();
     }
     if (rdoExixts.Checked)
     {
         GroupID = Convert.ToInt32(ddlGRoupList.SelectedValue);
     }
     if (GroupID > 0)
     {
         ConfiguratorUI objUI = new ConfiguratorUI();
         foreach (ListItem list in chkCodeList.Items)
         {
             if (list.Selected)
             {
                 objUI.source = "Configurator";
                 objUI.Code = list.Value.Trim();
                 objUI.GroupID = GroupID;
                 objController.SaveCulpritGroupMapping(objUI, null);
             }
         }
         Response.Redirect("/WMS/View/Forms/Configurator/CulpritConfigurator.aspx");
     }
 }
Ejemplo n.º 3
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     int GroupID = 0;
     if (rdoNew.Checked)
     {
         GroupID=saveGroupName();
     }
     if (rdoExisting.Checked)
     {
         GroupID = Convert.ToInt32(drpModel.SelectedValue);
     }
     if (GroupID > 0)
     {
         ConfiguratorUI objUI = new ConfiguratorUI();
         foreach (ListItem list in chkProductCode.Items)
         {
             if (list.Selected)
             {
                 objUI.ID =Convert.ToInt32(list.Value);
                 objUI.GroupID = GroupID;
                 objUI.source = "Exception";
                 objController.SaveProductGroupMapping(objUI, null);
             }
         }
         Response.Redirect("/WMS/View/Forms/Configurator/ProductGroupMapping.aspx");
     }
 }
Ejemplo n.º 4
0
    protected void btnSave_Click(object sender, EventArgs e)
    {
        int GroupID = 0;
        if (rdoNew.Checked)
        {
            GroupID = SaveCVoiceGroup();
        }
        if (rdoExixts.Checked)
        {
            GroupID = Convert.ToInt32(ddlGRoupList.SelectedValue);
        }
        if (GroupID > 0)
        {
            ConfiguratorUI objUI = new ConfiguratorUI();
            foreach (ListItem list in chkCodeList.Items)
            {
                if (list.Selected)
                {
                    objUI.source = "Exception";
                    objUI.Code = list.Value.Trim();
                    objUI.GroupID = GroupID;
                    objController.SaveCvoiceGroupMapping(objUI, null);
                }
            }
            //string strQuery = "Select * from AcrTemp where IsModelEx=0 and IsItemEx=0 and IsCulpritEx=0 and IsCVoiceEx=0 and IsDefectEx=0";
            //DataTable dt = objQuerycontroller.ExecuteQuery(strQuery);
            //if (dt != null)
            //{
            //    SaveAcr(dt);
            //    string strDeleteQuery = "Delete from AcrTemp where IsModelEx=0 and IsItemEx=0 and IsCulpritEx=0 and IsCVoiceEx=0 and IsDefectEx=0";
            //    objQuerycontroller.ExecuteQuery(strDeleteQuery);

            //}
            SaveBulkAcr();
            Response.Redirect("/WMS/View/Forms/Exceptions/CvoiceException.aspx");
        }
    }
Ejemplo n.º 5
0
    protected void btnSave_Click(object sender, EventArgs e)
    {
        int GroupID = 0;
        if (rdoNew.Checked)
        {
            GroupID = saveGroupName();
        }
        if (rdoExisting.Checked)
        {
            GroupID = Convert.ToInt32(drpModel.SelectedValue);
        }

        if (GroupID > 0)
        {
            ConfiguratorUI objUI = new ConfiguratorUI();
            foreach (ListItem list in chkProductCode.Items)
            {
                if (list.Selected)
                {
                    objUI.ID = Convert.ToInt32(list.Value);
                    objUI.GroupID = GroupID;
                    objUI.source = "Exception";
                    objController.SaveProductGroupMapping(objUI, null);
                }
            }
            string strQuery = "Select * from AcrTemp where IsModelEx=0 and IsItemEx=0 and IsCulpritEx=0 and IsCVoiceEx=0 and IsDefectEx=0";
            DataTable dt = objQuerycontroller.ExecuteQuery(strQuery);
            if (dt != null)
            {
                SaveAcr(dt);
                string strDeleteQuery = "Delete from AcrTemp where IsModelEx=0 and IsItemEx=0 and IsCulpritEx=0 and IsCVoiceEx=0 and IsDefectEx=0";
                objQuerycontroller.ExecuteQuery(strDeleteQuery);

            }

            string strProductionQuery = "Select * from ProductionTemp where IsModelEx=0";
            DataTable dtProduction = objQuerycontroller.ExecuteQuery(strProductionQuery);
            if (dtProduction != null)
            {
                SaveProduction(dtProduction);
                string strDeleteQuery = "Delete from ProductionTemp where IsModelEx=0";
                objQuerycontroller.ExecuteQuery(strDeleteQuery);

            }

            Response.Redirect("/WMS/View/Forms/Exceptions/ModelExceptionNew.aspx");
        }
    }