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);
                }
            }
        }
        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);
                }
            }
        }
Example #3
0
 private void btnQuery_Click(object sender, EventArgs e)
 {
     try
     {
         if ((this.chkQS.Checked && this.chkJZ.Checked) && (this.data_ksrq.Value > this.data_jsrq.Value))
         {
             MessageManager.ShowMsgBox("INP-441203");
         }
         else
         {
             QueryCondition qCondition = new QueryCondition();
             if (this.chkQS.Checked)
             {
                 qCondition.startTime = this.data_ksrq.Value.ToString("yyyyMMdd");
             }
             else
             {
                 qCondition.startTime = string.Empty;
             }
             if (this.chkJZ.Checked)
             {
                 qCondition.endTime = this.data_jsrq.Value.ToString("yyyyMMdd");
             }
             else
             {
                 qCondition.endTime = string.Empty;
             }
             qCondition.invType = this.cmbInvType.SelectedValue.ToString();
             qCondition.status  = this.cmbStatus.SelectedValue.ToString();
             this.applyQueryList.Clear();
             QueryConfirmCommon.QueryController(qCondition, this.applyQueryList, false);
             DataTable table = new DataTable();
             table.Columns.Add("CLXX", typeof(string));
             table.Columns.Add("SLXH", typeof(string));
             table.Columns.Add("FPZLDM", typeof(string));
             table.Columns.Add("FPZLMC", typeof(string));
             table.Columns.Add("FPZL", typeof(string));
             table.Columns.Add("YSQBH", typeof(string));
             table.Columns.Add("SLSL", typeof(string));
             table.Columns.Add("SQSJ", typeof(string));
             table.Columns.Add("CLSJ", typeof(string));
             table.Columns.Add("FPJMX", typeof(string));
             foreach (OneTypeVolumes volumes in this.applyQueryList)
             {
                 DataRow row = table.NewRow();
                 row["CLXX"]   = volumes.applyStatus + ":" + volumes.applyStatusMsg;
                 row["SLXH"]   = volumes.applyNum;
                 row["FPZLDM"] = volumes.typeCode;
                 row["FPZLMC"] = volumes.typeName;
                 row["FPZL"]   = volumes.invType;
                 row["YSQBH"]  = volumes.dealNum;
                 row["SLSL"]   = volumes.applyAmount;
                 row["SQSJ"]   = volumes.applyTime;
                 row["CLSJ"]   = volumes.dealTime;
                 row["FPJMX"]  = "明细";
                 table.Rows.Add(row);
             }
             this.csdgStatusVolumn.DataSource = table;
         }
     }
     catch (BaseException exception)
     {
         this.loger.Error(exception.Message);
         ExceptionHandler.HandleError(exception);
     }
     catch (Exception exception2)
     {
         this.loger.Error(exception2.Message);
         ExceptionHandler.HandleError(exception2);
     }
 }