Example #1
0
        private void rptViewer_Print(object sender, CancelEventArgs e)
        {
            //update 打印表 新增一笔记录
            WarehouseEngine wEngine       = new WarehouseEngine();
            string          inWarehouseNo = Convert.ToString(this.ReportData.ExtendedProperties["Report_InwarehouseNo"]);
            string          name          = PropertyService.Get(PROPERTY_FIELDS.USER_NAME_MZ);

            wEngine.InsertPrintInf(inWarehouseNo, name);
        }
Example #2
0
 private void btnSelect_Click(object sender, EventArgs e)
 {
     try
     {
         WarehouseEngine whe = new WarehouseEngine();
         DataSet         ds  = whe.GetRkKoInformation(txtRknum.Text.Trim(), cbeWerks.Text.Trim(),
                                                      txtWorkOrder.Text.Trim(), txtStatus.Text.Trim(),
                                                      dateStartTime.EditValue.ToString(), dateEndTime.EditValue.ToString());
         DataTable dt = new DataTable();
         dt = ds.Tables[0];
         //DataTable dt01 = new DataTable();
         //if (!dt01.Columns.Contains("ROWNUMBER"))
         //        dt01.Columns.Add("ROWNUMBER");
         //for (int i = 1; i < dt01.Rows.Count + 1; i++)
         //        dt01.Rows[i - 1]["ROWNUMBER"] = i.ToString();
         for (int i = 0; i < dt.Rows.Count; i++)
         {
             if (string.IsNullOrEmpty(dt.Rows[i]["RKSTATUS"].ToString()))
             {
                 dt.Rows[i]["RKSTATUS"] = "已创建";
                 continue;
             }
             if (dt.Rows[i]["RKSTATUS"].ToString() == "W")
             {
                 dt.Rows[i]["RKSTATUS"] = "未审批";
                 continue;
             }
             if (dt.Rows[i]["RKSTATUS"].ToString() == "A")
             {
                 dt.Rows[i]["RKSTATUS"] = "审批通过";
                 continue;
             }
             if (dt.Rows[i]["RKSTATUS"].ToString() == "R")
             {
                 dt.Rows[i]["RKSTATUS"] = "拒绝";
                 continue;
             }
             if (dt.Rows[i]["RKSTATUS"].ToString() == "T")
             {
                 dt.Rows[i]["RKSTATUS"] = "已过账";
                 continue;
             }
             if (dt.Rows[i]["RKSTATUS"].ToString() == "D")
             {
                 dt.Rows[i]["RKSTATUS"] = "已删除";
                 continue;
             }
         }
         gcrkInf.DataSource = dt;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "系统错误提示");
         return;
     }
 }