protected override void ShowListWithFilteredQuery() { QueryCondition qCondition = new QueryCondition { startTime = string.Empty, endTime = string.Empty, invType = string.Empty, status = string.Empty }; List <OneTypeVolumes> queryList = new List <OneTypeVolumes>(); QueryConfirmCommon.QueryController(qCondition, queryList, false); List <string> list2 = new List <string>(); List <string> list3 = new List <string> { "1", "0" }; foreach (OneTypeVolumes volumes in queryList) { string type = ApplyCommon.Invtype2CodeMix(volumes.invType); if (ApplyCommon.IsHxInvType(type)) { if (list2.IndexOf(volumes.applyStatus) != -1) { base.volumeList.Add(volumes); } } else if (ApplyCommon.IsZcInvType(type) && (list3.IndexOf(volumes.applyStatus) != -1)) { base.volumeList.Add(volumes); } } }
private void csdgStatusVolumn_MouseDoubleClick(object sender, MouseEventArgs e) { DataGridViewRow row = base.csdgStatusVolumn.SelectedRows[0]; string applySeqNum = row.Cells["SLXH"].Value.ToString(); string applyTypeCode = row.Cells["FPZLDM"].Value.ToString(); string applyAmount = row.Cells["SLSL"].Value.ToString(); string invTypeName = ApplyCommon.Invtype2CodeMix(row.Cells["FPZL"].Value.ToString()); if ((DialogResult.Yes == MessageManager.ShowMsgBox("INP-4412AA")) && this.RevokeVolumes(invTypeName, applySeqNum, applyTypeCode, applyAmount)) { MessageManager.ShowMsgBox("INP-4412AJ"); base.volumeList.RemoveAt(base.csdgStatusVolumn.SelectedRows[0].Index); base.BindData(base.volumeList); } }
protected override void ShowListWithFilteredQuery() { QueryCondition qCondition = new QueryCondition { startTime = string.Empty, endTime = string.Empty, invType = string.Empty, status = "1" }; List <OneTypeVolumes> queryList = new List <OneTypeVolumes>(); QueryConfirmCommon.QueryController(qCondition, queryList, true); foreach (OneTypeVolumes volumes in queryList) { if (!ApplyCommon.Invtype2CodeMix(volumes.invType).Equals("026")) { base.volumeList.Add(volumes); } } }
private void csdgStatusVolumn_MouseDoubleClick(object sender, MouseEventArgs e) { DataGridViewRow row = base.csdgStatusVolumn.SelectedRows[0]; DialogResult result = new ApplyConfirm(row.Cells["SLXH"].Value.ToString(), ApplyCommon.Invtype2CodeMix(row.Cells["FPZL"].Value.ToString())).ShowDialog(); if (DialogResult.Yes == result) { MessageManager.ShowMsgBox("INP-4412AI"); base.volumeList.RemoveAt(base.csdgStatusVolumn.SelectedRows[0].Index); base.BindData(base.volumeList); } }