protected void txtbranchName_TextChanged(object sender, EventArgs e) { { try { //Response.Write("coming"); string branchName = txtbranchName.Text.Trim().Split(Constants.splitseperator)[0].ToString().Trim(); bool auth = Masters.GetCodeValidation("branch", branchName); if (auth) { MessageBox("Branch Name is Already Exist"); txtbranchName.Text = ""; txtbranchName.Focus(); } else { txtbranchAddress.Focus(); } } catch { } } }
protected void txtZoneCode_TextChanged(object sender, EventArgs e) { bool Auth = Masters.GetCodeValidation("Zone", txtZoneCode.Text.Trim()); if (Auth) { MessageBox("Zone Code is already present"); txtZoneCode.Text = ""; txtZoneCode.Focus(); } else { txtZoneName.Focus(); } }
protected void txtAreaCode_TextChanged(object sender, EventArgs e) { bool Auth = Masters.GetCodeValidation("Area", txtAreaCode.Text.Trim()); if (Auth) { MessageBox("Area Code already exist"); txtAreaCode.Text = ""; txtAreaCode.Focus(); } else { txtAreaName.Focus(); } }
protected void TxtCustCode_TextChanged(object sender, EventArgs e) { bool Auth = Masters.GetCodeValidation("Customer", TxtCustCode.Text.Trim()); if (Auth) { MessageBox("Customer Code already exist"); TxtCustCode.Text = ""; TxtCustCode.Focus(); } else { TxtCustName.Focus(); } }
protected void txtkey_TextChanged(object sender, EventArgs e) { bool Auth = Masters.GetCodeValidation(lblCoder.Text, txtkey.Text.Trim()); // MessageBox(Auth.ToString()); if (Auth) { MessageBox("Code already exist"); txtkey.Text = ""; txtkey.Focus(); } else { txtvalue.Focus(); } }
protected void txtRname_TextChanged(object sender, EventArgs e) { if (txtRname.Text.ToLower() != Role.ToLower()) { bool Auth = Masters.GetCodeValidation("Role", txtRname.Text.Trim()); if (Auth) { MessageBox("Role is already present"); txtRname.Text = ""; txtRname.Focus(); } else { Chekacv.Focus(); } } }
protected void txtmedm_TextChanged(object sender, EventArgs e) { try { string medium = txtmedm.Text.Trim().Split(Constants.splitseperator)[0].ToString().Trim(); bool Auth = Masters.GetCodeValidation("Medium", medium); if (Auth) { txtprchse.Focus(); } else { MessageBox("Medium does not Exist"); txtmedm.Text = ""; txtmedm.Focus(); } } catch { } }
protected void txtstd_TextChanged(object sender, EventArgs e) { try { string standard = txtstd.Text.Trim().Split(Constants.splitseperator)[0].ToString().Trim(); bool Auth = Masters.GetCodeValidation("Standard", standard); if (Auth) { txtmedm.Focus(); } else { MessageBox("Standard does not Exist"); txtstd.Text = ""; txtstd.Focus(); } } catch { } }
protected void txtbkgrp_TextChanged(object sender, EventArgs e) { try { string bookgroupcode = txtbkgrp.Text.Trim().Split(Constants.splitseperator)[0].ToString().Trim(); bool Auth = Masters.GetCodeValidation("BookGroup", bookgroupcode); if (Auth) { txtstd.Focus(); } else { MessageBox("Book Group does not Exist"); txtbkgrp.Text = ""; txtbkgrp.Focus(); } } catch { } }
protected void TxtCmpyCode_TextChanged(object sender, EventArgs e) { try { string Cmcode = TxtCmpyCode.Text.Trim().Split(Constants.splitseperator)[0].ToString().Trim(); bool Auth = Masters.GetCodeValidation("Company", Cmcode); if (Auth) { MessageBox("Company Code Already Exist"); TxtCmpyCode.Text = ""; TxtCmpyCode.Focus(); } else { TxtAddress.Focus(); } } catch { } }
protected void txtDmcode_TextChanged(object sender, EventArgs e) { { try { string Dmcode = txtDmcode.Text.Trim().Split(Constants.splitseperator)[0].ToString().Trim(); bool Auth = Masters.GetCodeValidation("city", Dmcode); if (Auth) { MessageBox("City Code is Already Exist"); txtDmcode.Text = ""; txtDmcode.Focus(); } else { txtName.Focus(); } } catch { } } }
protected void txtDepCode_TextChanged(object sender, EventArgs e) { { try { string Departmentcode = txtDepCode.Text.Trim().Split(Constants.splitseperator)[0].ToString().Trim(); bool Auth = Masters.GetCodeValidation("department", Departmentcode); if (Auth) { DDLsuperzone.Focus(); } else { MessageBox("Deparment Code does not Exist"); txtDepCode.Text = ""; txtDepCode.Focus(); } } catch { } } }