protected void Button111_Click(object sender, EventArgs e)
        {
            TextBox9.Text = DropDownList10.SelectedValue;
            Ypologos.DataBind();

            ModalPopupExtender3.Hide();
        }
示例#2
0
        protected void btnNomineeUpdate_Click(object sender, EventArgs e)
        {
            HRM_PersonalInformations personalInfo = new HRM_PersonalInformations();
            string employeeId = "";

            try
            {
                employeeId = Convert.ToString(Session["EID"]);
                personalInfo.NomineeName     = txtbxNomineeName.Text.Trim();
                personalInfo.NomineeAge      = txtbxAge.Text;
                personalInfo.NomineeRelation = txtbxRelation.Text.Trim();
                //Addresss

                int result = empSetupDal.UpdateNomineeInfoPersonalInfo(personalInfo, employeeId);
                if (result == 1)
                {
                    lblNomineeMessage.Text = "Data Update Successfully.";

                    GetPersonalInfo(employeeId);
                    ModalPopupExtender3.Hide();
                }
                else
                {
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
 protected void Button4_Click(object sender, EventArgs e)
 {
     Label1.Text = "";
     clear();
     pnladdnew.Visible = false;
     btntest.Visible   = true;
     ModalPopupExtender3.Hide();
 }
示例#4
0
 protected void Button3_Click(object sender, EventArgs e)
 {
     ModalPopupExtender3.Hide();
     TextCant.Text        = "1";
     LblError.Visible     = false;
     HdfArt.Value         = null;
     ArticuloId           = null;
     TxtBuscarNombre.Text = null;
 }
示例#5
0
 protected void Button6_Click(object sender, EventArgs e)
 {
     TextBox10.Text = DropDownList10.SelectedItem.Text + TextBox7.Text + TextBox15.Text;
     TextBox7.Text  = "";
     TextBox15.Text = "";
     TextBox8.Text  = "";
     TextBox13.Text = "";
     TextBox14.Text = "";
     ModalPopupExtender3.Hide();
 }
        public void NewProduct_Click(object sender, EventArgs e)
        {
            var productnumber      = this.Panel3.FindControl("NewProductNumber") as TextBox;
            var productdescription = this.Panel3.FindControl("NewProductDescription") as TextBox;
            var unittype           = this.Panel3.FindControl("NewUnitType") as DropDownList;
            var rop         = this.Panel3.FindControl("NewROP") as TextBox;
            var modulea     = this.Panel3.FindControl("NewModuleA") as DropDownList;
            var quantitya   = this.Panel3.FindControl("NewQuantityA") as TextBox;
            var moduleb     = this.Panel3.FindControl("NewModuleB") as DropDownList;
            var quantityb   = this.Panel3.FindControl("NewQuantityB") as TextBox;
            var producttype = this.Panel3.FindControl("NewProductType") as DropDownList;

            using (SqlConnection sqlCon = new SqlConnection(connectionString))
            {
                SqlCommand cmd = new SqlCommand("INSERT INTO Products(ProductNumber, ProductDescription, UnitType, ROP, ModuleA, QuantityA, ModuleB, QuantityB, ProductType) VALUES (@ProductNumber, @ProductDescription, @UnitType, @ROP, @ModuleA, @QuantityA, @ModuleB, @QuantityB, @ProductType)", sqlCon);
                cmd.Parameters.AddWithValue("@ProductNumber", productnumber.Text);
                cmd.Parameters.AddWithValue("@ProductDescription", productdescription.Text);
                cmd.Parameters.AddWithValue("@UnitType", unittype.Text);
                cmd.Parameters.AddWithValue("@ROP", rop.Text);
                cmd.Parameters.AddWithValue("@ModuleA", modulea.Text);
                cmd.Parameters.AddWithValue("@QuantityA", quantitya.Text);
                cmd.Parameters.AddWithValue("@ModuleB", moduleb.Text);
                cmd.Parameters.AddWithValue("@QuantityB", quantityb.Text);
                cmd.Parameters.AddWithValue("@ProductType", producttype.Text);
                sqlCon.Open();
                cmd.ExecuteNonQuery();
                SqlDataAdapter sqlDa = new SqlDataAdapter("SELECT * FROM Products", sqlCon);
                DataTable      dtbl  = new DataTable();
                sqlDa.Fill(dtbl);
                gvProducts.DataSource = dtbl;
                gvProducts.DataBind();
                sqlCon.Close();
                Label1products.Text = (gvProducts.DataSource as DataTable).Rows.Count + " Products";
                if (NewProductType.SelectedValue == "1")
                {
                    NewModuleA.Visible   = true;
                    NewQuantityA.Visible = true;
                    NewModuleB.Visible   = true;
                    NewQuantityB.Visible = true;
                    NANewROP.Visible     = true;
                    NewROP.Visible       = false;
                }
                else
                {
                    NewModuleA.Visible   = false;
                    NewQuantityA.Visible = false;
                    NewModuleB.Visible   = false;
                    NewQuantityB.Visible = false;
                    NANewROP.Visible     = false;
                    NewROP.Visible       = true;
                }
            }
            ModalPopupExtender3.Hide();
            NewProductFinish.Visible = false;
        }
示例#7
0
 private void ValidarModalSearch()
 {
     if (HiddenActivateModalSearch.Value == "1")
     {
         ModalPopupExtender3.Show();
     }
     else
     {
         ModalPopupExtender3.Hide();
     }
 }
        protected void Button110_Click(object sender, EventArgs e)
        {
            // Neo aitima

            TextBox9.Text = DropDownList10.SelectedValue;
            Ypologos.DataBind();
            ModalPopupExtender3.Hide();
            Old_Eggrafa.DataBind();

            TextBox27.Text = "0";
        }
 protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         Session["pagesearch"] = null;
         ModalPopupExtender3.Hide();
         //Response.Redirect(Request.QueryString["page"].ToString());
     }
     catch (Exception ex)
     {
     }
 }
示例#10
0
   public void btnCreateGroup_Click(object sender, EventArgs e)
   {
       string message;
       string groupName = MyUtilities.clean(AddGroupName.Text);
       groupName = groupName.Trim();
       if (groupName == "")
       {
           //ShowErrorMessage("No group name entered.  Please try again.");  
           return;
       }

      

       int successCreate = groupManagement.add_new_group(groupName, username);
       if (successCreate == 0)
       {
           message = "Group name is already in use. Please choose a new group name.";
           logFiles.ErrorMessageLog(message);
           ShowErrorMessage(message);
           
          ModalPopupExtender3.Show();
           return;
       }
       if (successCreate == -1)
       {
           message = "Couldn't find added Group name TIMING!!!.";
           logFiles.ErrorMessageLog(message);
           ShowErrorMessage(message);
           
           return;
       }

       CurrentGroupName = groupName;
       ModalPopupExtender3.Hide();
       DropDownList2Bind();
       ModalPopupExtender3.Hide();

       //ShowErrorMessage("added group " + groupName);
       message = "User group " + groupName + " created.";
       MailInfo.SendMail(message, MailInfo.GROUP_CREATED);

       SetUserGridData();
  
   }
 protected void ImageButton10_Click(object sender, EventArgs e)
 {
     GridView1.PagerSettings.Visible = true;
     ModalPopupExtender3.Hide();
 }
示例#12
0
 protected void UpdateProduct_Click(object sender, EventArgs e)
 {
     ModalPopupExtender3.Hide();
     using (SqlConnection sqlCon = new SqlConnection(connectionString))
     {
         foreach (GridViewRow row in gvProducts.Rows)
         {
             var chk                = row.FindControl("SelectRowP") as CheckBox;
             var productnumber      = this.Panel3.FindControl("NewProductNumber") as TextBox;
             var productdescription = this.Panel3.FindControl("NewProductDescription") as TextBox;
             var unittype           = this.Panel3.FindControl("NewUnitType") as DropDownList;
             var rop                = this.Panel3.FindControl("NewROP") as TextBox;
             var modulea            = this.Panel3.FindControl("NewModuleA") as DropDownList;
             var quantitya          = this.Panel3.FindControl("NewQuantityA") as TextBox;
             var moduleb            = this.Panel3.FindControl("NewModuleB") as DropDownList;
             var quantityb          = this.Panel3.FindControl("NewQuantityB") as TextBox;
             var producttype        = this.Panel3.FindControl("NewProductType") as DropDownList;
             if (chk.Checked)
             {
                 var        lblID = row.FindControl("IdDisplayP") as Label;
                 SqlCommand cmd   = new SqlCommand();
                 cmd.CommandText = "UPDATE Products SET ProductNumber = @ProductNumber, ProductDescription = @ProductDescription, UnitType = @UnitType, ROP = @ROP, ModuleA = @ModuleA, QuantityA = @QuantityA, ModuleB = @ModuleB, QuantityB = @QuantityB, ProductType = @ProductType WHERE Id=@id";
                 cmd.Connection  = sqlCon;
                 cmd.Parameters.AddWithValue("@ProductNumber", productnumber.Text);
                 cmd.Parameters.AddWithValue("@ProductDescription", productdescription.Text);
                 cmd.Parameters.AddWithValue("@UnitType", unittype.Text);
                 cmd.Parameters.AddWithValue("@ROP", rop.Text);
                 cmd.Parameters.AddWithValue("@id", int.Parse(lblID.Text));
                 cmd.Parameters.AddWithValue("@ModuleA", modulea.Text);
                 cmd.Parameters.AddWithValue("@QuantityA", quantitya.Text);
                 cmd.Parameters.AddWithValue("@ModuleB", moduleb.Text);
                 cmd.Parameters.AddWithValue("@QuantityB", quantityb.Text);
                 cmd.Parameters.AddWithValue("@ProductType", producttype.Text);
                 sqlCon.Open();
                 cmd.ExecuteNonQuery();
                 SqlDataAdapter sqlDa = new SqlDataAdapter("SELECT * FROM Products", sqlCon);
                 DataTable      dtbl  = new DataTable();
                 sqlDa.Fill(dtbl);
                 gvProducts.DataSource = dtbl;
                 gvProducts.DataBind();
                 sqlCon.Close();
             }
         }
         if (NewProductType.SelectedValue == "1")
         {
             NewModuleA.Visible   = true;
             NewQuantityA.Visible = true;
             NewModuleB.Visible   = true;
             NewQuantityB.Visible = true;
             NANewROP.Visible     = true;
             NewROP.Visible       = false;
         }
         else
         {
             NewModuleA.Visible   = false;
             NewQuantityA.Visible = false;
             NewModuleB.Visible   = false;
             NewQuantityB.Visible = false;
             NANewROP.Visible     = false;
             NewROP.Visible       = true;
         }
     }
 }
 protected void btnContactCancel_Click(object sender, EventArgs e)
 {
     ModalPopupExtender3.Hide();
 }
 protected void ImageButton10_Click(object sender, EventArgs e)
 {
     ModalPopupExtender3.Hide();
 }
示例#15
0
 protected void SUBbtnCancel_Click(object sender, EventArgs e)
 {
     ModalPopupExtender3.Hide();
     clearAllSUB();
     TurnCapchaOnOff(MessageClass.IsSpammer());
 }
示例#16
0
 protected void Button3_Click(object sender, EventArgs e)
 {
     TextCant.Text = "1";
     ModalPopupExtender3.Hide();
 }
示例#17
0
 protected void onCancelUpcoming(object sender, EventArgs e)
 {
     ModalPopupExtender3.Hide();
 }
 protected void Button110_Click(object sender, EventArgs e)
 {
     ModalPopupExtender3.Hide();
     Response.Redirect("SCComplData.aspx");
 }
示例#19
0
public void btnCancelCreateGroup_Click(object sender, EventArgs e)
   {
       ModalPopupExtender3.Hide();
       DropDownList2Bind();
   }
示例#20
0
 protected void modalclose3_Click(object sender, EventArgs e)
 {
     ModalPopupExtender3.Hide();
     NewProductFinish.Visible = false;
     UpdateProduct.Visible    = false;
 }
    protected void Button3_Click(object sender, EventArgs e)
    {
        if (DropDownList2.SelectedItem.Text == "Audio")
        {
            Label1.Text = "";
            //DateTime dt = Convert.ToDateTime(System.DateTime.Now.ToShortDateString());
            SqlCommand cmd = new SqlCommand("Delete from InventoryMediaMaster where InventoryMasterId='" + ViewState["InvMid"] + "' and MediaFileTypeID='" + DropDownList2.SelectedValue + "'", con);
            if (con.State.ToString() != "Open")
            {
                con.Open();
            }
            cmd.ExecuteNonQuery();
            con.Close();



            if (Session["filename"] != null)
            {
                //string filename = Session["comid"] + "/audio/" + Session["filename"];
                insert(Convert.ToInt32(ViewState["InvMid"].ToString()), txtfiletitle.Text, Session["filename"].ToString(), Convert.ToInt32(DropDownList2.SelectedValue), txttaskinstruction.Text, System.DateTime.Now);
                clear();
                FillGrid2DiffView();
                pnladdnew.Visible   = false;
                btntest.Visible     = true;
                Session["filename"] = null;
            }
            else if (lblfilen.Text != "")
            {
                string filename = Session["comid"] + "/audio/" + lblfilen.Text;
                insert(Convert.ToInt32(ViewState["InvMid"].ToString()), txtfiletitle.Text, filename, Convert.ToInt32(DropDownList2.SelectedValue), txttaskinstruction.Text, System.DateTime.Now);
                clear();
                FillGrid2DiffView();
                pnladdnew.Visible   = false;
                btntest.Visible     = true;
                Session["filename"] = null;
            }
        }
        else if (DropDownList2.SelectedItem.Text == "Video")
        {
            //DateTime dt = Convert.ToDateTime(System.DateTime.Now.ToShortDateString());
            SqlCommand cmd = new SqlCommand("Delete from InventoryMediaMaster where InventoryMasterId='" + ViewState["InvMid"] + "' and MediaFileTypeID='" + DropDownList2.SelectedValue + "'", con);
            if (con.State.ToString() != "Open")
            {
                con.Open();
            }
            cmd.ExecuteNonQuery();
            con.Close();


            if (Session["filename1"] != null)
            {
                // string filename = Session["comid"] + "/vidio/" + Session["filename"];
                insert(Convert.ToInt32(ViewState["InvMid"].ToString()), txtfiletitle.Text, Session["filename1"].ToString(), Convert.ToInt32(DropDownList2.SelectedValue), txttaskinstruction.Text, System.DateTime.Now);
                clear();
                Session["filename"] = null;
                FillGrid2DiffView();
                pnladdnew.Visible = false;
                btntest.Visible   = true;
            }
            else if (lblfilen.Text != "")
            {
                string filename = Session["comid"] + "/vidio/" + lblfilen.Text;
                insert(Convert.ToInt32(ViewState["InvMid"].ToString()), txtfiletitle.Text, filename, Convert.ToInt32(DropDownList2.SelectedValue), txttaskinstruction.Text, System.DateTime.Now);
                clear();
                FillGrid2DiffView();
                pnladdnew.Visible = false;
                btntest.Visible   = true;
            }
        }
        ModalPopupExtender3.Hide();
    }