private void ItemButtonDelete_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { _presenter.DeleteProduct(); }
private void buttonEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { buttonEdit1.EditValue = string.Empty; }
private void txtBranchName_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { frmDanhMuc_ChiNhanh frm = new frmDanhMuc_ChiNhanh(); frm.ShowDialog(); }
private void btnHuy_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { LoadData(); }
/// <summary> /// 选择适用报价单 /// </summary> private void btnEditAutoQuotationNo_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { try { FrmQuotationApply quoApply = new FrmQuotationApply(); if (quoApply.ShowDialog() == DialogResult.OK) { DataRow dr = gridViewSalesOrder.GetFocusedDataRow(); DataRow selectBaseRow = quoApply.gridViewQuotationBaseInfo.GetFocusedDataRow(); DataRow selectPriceRow = quoApply.gridViewQuotationPriceInfo.GetFocusedDataRow(); string oldAutoQuotationNoStr = DataTypeConvert.GetString(dr["AutoQuotationNo"]); string oldVersionsStr = DataTypeConvert.GetString(dr["QuotationVersions"]); string autoQuotationNoStr = DataTypeConvert.GetString(selectBaseRow["AutoQuotationNo"]); string VersionsStr = DataTypeConvert.GetString(selectPriceRow["Versions"]); if (oldAutoQuotationNoStr != autoQuotationNoStr || oldVersionsStr != VersionsStr) { dataSet_Quotation.Tables[0].Rows.Clear(); quoDAO.QueryQuotationBaseInfo(dataSet_Quotation.Tables[0], "", "", "", "", autoQuotationNoStr); string BussinessBaseNo = DataTypeConvert.GetString(selectBaseRow["BussinessBaseNo"]); dr["AutoQuotationNo"] = autoQuotationNoStr; btnEditAutoQuotationNo.Text = autoQuotationNoStr; dr["BussinessBaseNo"] = BussinessBaseNo; searchBussinessBaseNo.EditValue = BussinessBaseNo; dr["QuotationVersions"] = VersionsStr; lookUpQuotationVersions.EditValue = VersionsStr; string ParentAutoSalesOrderNo = DataTypeConvert.GetString(selectBaseRow["ParentAutoSalesOrderNo"]); if (ParentAutoSalesOrderNo != "") { string ParentProjectNo = DataTypeConvert.GetString(selectBaseRow["ParentProjectNo"]); textParentAutoSalesOrderNo.Text = ParentAutoSalesOrderNo; dr["ParentAutoSalesOrderNo"] = ParentAutoSalesOrderNo; textParentProjectNo.Text = ParentProjectNo; dr["ParentProjectNo"] = ParentProjectNo; labParentAutoSalesOrderNo.Visible = true; textParentAutoSalesOrderNo.Visible = true; labParentProjectNo.Visible = true; textParentProjectNo.Visible = true; } else { textParentAutoSalesOrderNo.Text = ""; dr["ParentAutoSalesOrderNo"] = ""; textParentProjectNo.Text = ""; dr["ParentProjectNo"] = ""; labParentAutoSalesOrderNo.Visible = false; textParentAutoSalesOrderNo.Visible = false; labParentProjectNo.Visible = false; textParentProjectNo.Visible = false; } if (oldVersionsStr == VersionsStr) { lookUpQuotationVersions_EditValueChanged(null, null); } searchProjectName.Focus(); } } } catch (Exception ex) { ExceptionHandler.HandleException(this.Text + "--选择适用报价单错误。", ex); } }
private void _reBEAmount_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { }
private void gridLookUpEditModel_ButtonPressed(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (e.Button.Index == 1) { } }
private void btnRecheckComplete_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (this.UserInfoDto.RoleType == "C") { return; } ExecuteTeamAlterDto dto = grvExecuteTeamAlter.GetRow(grvExecuteTeamAlter.FocusedRowHandle) as ExecuteTeamAlterDto; DataSet ds = service.GetShopRecheckStatus(dto.ProjectCode, dto.ShopCode); List <string> strlistTotal = new List <string>(); List <string> strCurrent = new List <string>(); List <string> strLeft = new List <string>(); strlistTotal.Add("照片类"); strlistTotal.Add("资料类"); strlistTotal.Add("交叉类"); int num = 0; if (ds.Tables[0].Rows.Count > 0) { for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { if (Convert.ToString(ds.Tables[0].Rows[i]["StatusCode"]) == "S1") { num++; break; } } for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { string statusCode = Convert.ToString(ds.Tables[0].Rows[i]["StatusCode"]); if (statusCode == "SA") { strCurrent.Add("照片类"); } if (statusCode == "SB") { strCurrent.Add("资料类"); } if (statusCode == "SC") { strCurrent.Add("交叉类"); } } foreach (string item in strlistTotal) { if (!strCurrent.Contains(item)) { strLeft.Add(item); } } } string strleftResult = ""; foreach (string item in strLeft) { strleftResult += item + " "; } if (strCurrent.Count < 3) { CommonHandler.ShowMessage(MessageType.Information, strleftResult + "没有复审完毕,不能提交复审修改完毕"); return; } if (num != 0) { CommonHandler.ShowMessage(MessageType.Information, "已经提交过修改审核完毕申请,请不要重复提交!"); return; } int a = Convert.ToInt32(service.SearchExecuteTeamUnAgreeCount(dto.ProjectCode, dto.ShopCode, dto.ReCheckTypeCode).Tables[0].Rows[0]["Count"]); if (a > 0) { CommonHandler.ShowMessage(MessageType.Information, "存在不同意的审核事项,请确认"); return; } else { DialogResult reslut = CommonHandler.ShowMessage(MessageType.Confirm, "确定所有的执行文件已经修改完毕,提交修改完毕申请吗?"); if (reslut == DialogResult.Yes || reslut == DialogResult.OK) { //string finalCode = ""; //switch (dto.ReCheckTypeCode) //{ // case "01": finalCode = "04"; break; // case "02": finalCode = "06"; break; // case "03": finalCode = "08"; break; //} service.SaveReCheckStatus(dto.ProjectCode, dto.ShopCode, "S1", this.UserInfoDto.UserID); } else { return; } } CommonHandler.ShowMessage(MessageType.Information, "提交成功!"); this.SearchButtonClick(); }
private void btEditMa_ButtonClick_1(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { btEditMa.Text = mapt; }
private void searchControl经营场所_Properties_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { }
private void textEdit1_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { if (DeviceHelper.xml1 == null) { return; } object obj = null; obj = DeviceHelper.SelectDevice(DeviceType.BDZ, Itop.Client.MIS.ProgUID); if (obj is PSP_Substation_Info) { string deviceid = ((PSP_Substation_Info)obj).UID; ((PSP_Substation_Info)obj).LayerID = layerid; ((PSP_Substation_Info)obj).EleID = eleid; Services.BaseService.Update <PSP_Substation_Info>(((PSP_Substation_Info)obj)); if (DeviceHelper.xml1 != null) { DeviceHelper.xml1.SetAttribute("Deviceid", deviceid); substation sb = new substation(); sb.UID = ((PSP_Substation_Info)obj).UID; sb = (substation)Services.BaseService.GetObject("SelectsubstationByKey", sb); if (sb != null) { sb.SvgUID = uid; sb.LayerID = layerid; sb.EleID = DeviceHelper.xml1.GetAttribute("id"); if (((PSP_Substation_Info)obj).Flag == "2") { sb.ObligateField3 = "规划"; } else if (((PSP_Substation_Info)obj).Flag == "1") { sb.ObligateField3 = "现行"; } Services.BaseService.Update <substation>(sb); } else { sb = new substation(); sb.UID = ((PSP_Substation_Info)obj).UID; sb.SvgUID = uid; sb.EleID = DeviceHelper.xml1.GetAttribute("id"); sb.LayerID = layerid; if (((PSP_Substation_Info)obj).Flag == "2") { sb.ObligateField3 = "规划"; } else if (((PSP_Substation_Info)obj).Flag == "1") { sb.ObligateField3 = "现行"; } Services.BaseService.Create <substation>(sb); } } this.Close(); return; } this.Close(); }
private void bteNganh_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { UtilFunctions.bteItemSegment_ButtonClick(sender, e, bteNganh, cboLoaiMaHang.SelectedIndex); }
private void bteKhachHang_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { UtilFunctions.bteKhachHang_ButtonClick(sender, e, bteKhachHang, -1); }
private void bteKhoXuat_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { int idTrungTam = bteTrungTam.Tag != null ? ((DMTrungTamInfor)bteTrungTam.Tag).IdTrungTam : 0; UtilFunctions.bteKhoXuat_ButtonClick(sender, e, bteKhoXuat, idTrungTam, nguoiDung.IdNhanVien); }
private void OnSystemMenuButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { string tag = ConvertUtil.ToString(e.Button.Tag); OpenForm(tag); }
private void teChangeApplication_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { var changeApplication = new CreateChangeApplication(); changeApplication.ShowDialog(); }
void StokKodColumn_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { SendKeys.Send("{F10}"); }
private void repositoryItemLookUpEditDiscountTypeId_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { BtnSave.Focus(); gridViewAdd.Focus(); LookUpEdit LUE = (LookUpEdit)sender; if (LUE.EditValue.ToString() != ((int)Program.DiscountType.بدون_خصم).ToString() && ItemDetials.Rows[gridViewAdd.GetFocusedDataSourceRowIndex()]["harakatype"].ToString() == ((int)Program.HarakaType.مرتجع).ToString()) { LUE.EditValue = ((int)Program.DiscountType.بدون_خصم).ToString(); ItemDetials.Rows[gridViewAdd.GetFocusedDataSourceRowIndex()]["Discount"] = "0"; } }
void ProductoTextEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { UbicarProducto(""); }
private void repositoryItemButtonEditSort_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { int index = gridViewAdd.FocusedRowHandle; DataRow row1 = null; DataRow row2 = null; if (e.Button.Index == 0) { if (index <= 0) { return; } row1 = gridViewAdd.GetDataRow(index); row2 = gridViewAdd.GetDataRow(index - 1); } else { if (gridViewAdd.IsLastRow) { return; } row1 = gridViewAdd.GetDataRow(index); row2 = gridViewAdd.GetDataRow(index + 1); } string outID1, SanfID1, UnitID1, UnitName1, outQuantity1, outPrice1, DiscountPercent1, Total1; string outID2, SanfID2, UnitID2, UnitName2, outQuantity2, outPrice2, DiscountPercent2, Total2; //save data in row 1 outID1 = row1["outID"].ToString(); SanfID1 = row1["SanfID"].ToString(); UnitID1 = row1["UnitID"].ToString(); UnitName1 = row1["UnitName"].ToString(); outQuantity1 = row1["outQuantity"].ToString(); outPrice1 = row1["outPrice"].ToString(); DiscountPercent1 = row1["DiscountPercent"].ToString(); Total1 = row1["Total"].ToString(); //save data in row 2 outID2 = row2["outID"].ToString(); SanfID2 = row2["SanfID"].ToString(); UnitID2 = row2["UnitID"].ToString(); UnitName2 = row2["UnitName"].ToString(); outQuantity2 = row2["outQuantity"].ToString(); outPrice2 = row2["outPrice"].ToString(); DiscountPercent2 = row2["DiscountPercent"].ToString(); Total2 = row2["Total"].ToString(); //save data to row1 row1["outID"] = outID2; row1["SanfID"] = SanfID2; row1["UnitID"] = UnitID2; row1["UnitName"] = UnitName2; row1["outQuantity"] = outQuantity2; row1["outPrice"] = outPrice2; row1["DiscountPercent"] = FXFW.SqlDB.ConvertStringToInt(DiscountPercent2); row1["Total"] = Total2; //save data to row2 row2["outID"] = outID1; row2["SanfID"] = SanfID1; row2["UnitID"] = UnitID1; row2["UnitName"] = UnitName1; row2["outQuantity"] = outQuantity1; row2["outPrice"] = outPrice1; row2["DiscountPercent"] = FXFW.SqlDB.ConvertStringToInt(DiscountPercent1); row2["Total"] = Total1; }
void txtIngrediente_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { platoIngrediente = (PlatosIngrediente)this.platosIngredienteBindingSource.Current; UbicarProducto(""); LeerIngrediente(false); }
private void repositoryItemButtonEditEditUpdate_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { // Update Bill if (MessageBox.Show("هل ترغب في التعديل؟", "تأكــــيد", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) == System.Windows.Forms.DialogResult.No) { return; } SqlConnection Con = new SqlConnection(FXFW.SqlDB.SqlConStr); DataRow row = gridViewEdit.GetFocusedDataRow(); if (row["TRHEL"].ToString() == "True") { Program.msg("لا يمكن تعديل هذه الفاتوره وذلك لان تم ترحيلها ", true, "", this); return; } string StoreTrDate, PERSONID, EMPID, Totalkasm, DiscountTypeId, REM, StoreID, BillPayTypeID, StoreTrIDDAY; if (row["StoreTrDate"].ToString() != string.Empty) { StoreTrDate = string.Format("Convert(Datetime, '{0}', 103)", row["StoreTrDate"]); } else { StoreTrDate = "NULL"; } if (row["PERSONID"].ToString() != string.Empty) { PERSONID = row["PERSONID"].ToString(); } else { PERSONID = "NULL"; } if (row["EMPID"].ToString() != string.Empty) { EMPID = row["EMPID"].ToString(); } else { EMPID = "NULL"; } if (row["Totalkasm"].ToString() != string.Empty) { Totalkasm = row["Totalkasm"].ToString(); } else { Totalkasm = "0"; } if (row["DiscountTypeId"].ToString() != string.Empty) { DiscountTypeId = row["DiscountTypeId"].ToString(); } else { DiscountTypeId = "NULL"; } if (row["REM"].ToString() != string.Empty) { REM = String.Format("N'{0}'", row["REM"]); } else { REM = "NULL"; } if (row["StoreID"].ToString() != string.Empty) { StoreID = row["StoreID"].ToString(); } else { StoreID = "NULL"; } if (row["BillPayTypeID"].ToString() != string.Empty) { BillPayTypeID = row["BillPayTypeID"].ToString(); } else { BillPayTypeID = "NULL"; } if (row["StoreTrIDDAY"].ToString() != string.Empty) { StoreTrIDDAY = row["StoreTrIDDAY"].ToString(); } else { StoreTrIDDAY = "NULL"; } SqlCommand Cmd = new SqlCommand("", Con); try { Con.Open(); Cmd.CommandText = string.Format(@"Update TBLStoreTransaction Set StoreTrDate = {0}, StoreTrIDDAY = {1}, PERSONID = {2}, BillPayTypeID = {3}, DiscountTypeId = {4}, Totalkasm = {5}, REM = {6}, StoreID = {7}, EMPID = {8}, UserIN = {9}, TimeIN = GETDATE() Where StoreTrID = {10}", StoreTrDate, StoreTrIDDAY, PERSONID, BillPayTypeID, DiscountTypeId, Totalkasm, REM, StoreID, EMPID, FXFW.SqlDB.UserInfo.UserID, row["StoreTrID"].ToString()); Cmd.ExecuteNonQuery(); MessageBox.Show("تم تعديل الفاتوره", "تمت العمليه", MessageBoxButtons.OK, MessageBoxIcon.Information); } catch (SqlException ex) { MessageBox.Show(ex.Message, ex.ErrorCode.ToString(), MessageBoxButtons.OK, MessageBoxIcon.Error); } Con.Close(); }
private void txtPopUp_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { DevExpress.XtraEditors.ButtonEdit txtPopUp = (DevExpress.XtraEditors.ButtonEdit)sender; this.pmPopUpButtonClick(txtPopUp.Name.ToUpper(), txtPopUp.Text); }
private void repositoryItemButtonEditEditDetails_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { }
private void btnItemEdit_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { MessageBox.Show("ButtonClick"); }
private void lookUpEditDepot_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { this.bindingSourceDepot.DataSource = this._depotManager.Select(); }
private void txtBelgeNo_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { }
private void txtWorkspace_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { m_Workspace = null; switch (m_SelectedWorkspaceType) { case enumWorkspaceType.SDE: FrmSDESetting frmSetting = new FrmSDESetting(); if (m_SDEPropertySet != null) { frmSetting.SDEPropertySet = m_SDEPropertySet; } if (frmSetting.ShowDialog(this) != DialogResult.OK) { return; } m_SDEPropertySet = frmSetting.SDEPropertySet; txtWorkspace.Text = Utility.WorkspaceHelper.PropertySetToString(m_SDEPropertySet); m_Workspace = Utility.WorkspaceHelper.OpenWorkspace(enumWorkspaceType.SDE, m_SDEPropertySet); break; case enumWorkspaceType.FileGDB: if (folderBrowserWorkspace.ShowDialog(this) != DialogResult.OK) { return; } txtWorkspace.Text = folderBrowserWorkspace.SelectedPath; m_Workspace = Utility.WorkspaceHelper.OpenWorkspace(enumWorkspaceType.FileGDB, folderBrowserWorkspace.SelectedPath); break; case enumWorkspaceType.PGDB: dlgWorkspace.Filter = "PGDB |*.mdb"; if (dlgWorkspace.ShowDialog(this) != DialogResult.OK) { return; } txtWorkspace.Text = dlgWorkspace.FileName; m_Workspace = Utility.WorkspaceHelper.OpenWorkspace(enumWorkspaceType.PGDB, dlgWorkspace.FileName); break; case enumWorkspaceType.File: if (folderBrowserWorkspace.ShowDialog(this) != DialogResult.OK) { return; } txtWorkspace.Text = folderBrowserWorkspace.SelectedPath; m_Workspace = Utility.WorkspaceHelper.OpenWorkspace(enumWorkspaceType.File, folderBrowserWorkspace.SelectedPath); break; } // 判断 if (m_Workspace == null) { XtraMessageBox.Show("非正确的数据库!"); return; } // 加载Dataset cmbDataset.Properties.Items.Clear(); cmbDataset.Properties.Items.Add(""); esriDatasetType dsType = (this.m_PathType == enumPathType.Feature ? esriDatasetType.esriDTFeatureDataset : esriDatasetType.esriDTRasterCatalog); IEnumDatasetName enDatasetName = m_Workspace.get_DatasetNames(dsType); IDatasetName dsName = enDatasetName.Next(); while (dsName != null) { cmbDataset.Properties.Items.Add(dsName.Name); dsName = enDatasetName.Next(); } }
private void btnDetail_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { frm_TedarikcilereMailleGonderilenMalzemeDetayi frm = new frm_TedarikcilereMailleGonderilenMalzemeDetayi(); frm.ShowDialog(); }
private void bteTrungTam_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { UtilFunctions.bteTrungTam_ButtonClick(sender, e, bteTrungTam, nguoiDung.IdNhanVien); }