修改了 夏宝 车间看板 采购看板 缺料看板 根据系统设置默认车间过滤功能
| | |
| | | <Compile Include="LED\Sc_LEDInfoNote.designer.cs"> |
| | | <DependentUpon>Sc_LEDInfoNote.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Sc_CGKB.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="Sc_CGKB.designer.cs"> |
| | | <DependentUpon>Sc_CGKB.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Sc_CJKB.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="Sc_CJKB.designer.cs"> |
| | | <DependentUpon>Sc_CJKB.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Sc_ProductionLineKB.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="Sc_ProductionLineKB.designer.cs"> |
| | | <DependentUpon>Sc_ProductionLineKB.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Sc_QLKB.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="Sc_QLKB.designer.cs"> |
| | | <DependentUpon>Sc_QLKB.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="Sc_WorkshopKB.cs"> |
| | | <SubType>Form</SubType> |
| | |
| | | <DependentUpon>Sc_LEDInfoNote.cs</DependentUpon> |
| | | <SubType>Designer</SubType> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="Sc_CGKB.resx"> |
| | | <DependentUpon>Sc_CGKB.cs</DependentUpon> |
| | | <SubType>Designer</SubType> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="Sc_CJKB.resx"> |
| | | <DependentUpon>Sc_CJKB.cs</DependentUpon> |
| | | <SubType>Designer</SubType> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="Sc_ProductionLineKB.resx"> |
| | | <DependentUpon>Sc_ProductionLineKB.cs</DependentUpon> |
| | | <SubType>Designer</SubType> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="Sc_QLKB.resx"> |
| | | <DependentUpon>Sc_QLKB.cs</DependentUpon> |
| | | <SubType>Designer</SubType> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="Sc_WorkshopKB.resx"> |
| | | <DependentUpon>Sc_WorkshopKB.cs</DependentUpon> |
| | | <SubType>Designer</SubType> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Text; |
| | | using System.Windows.Forms; |
| | | using gregn6Lib; |
| | | using SQLHelper; |
| | | using DBUtility; |
| | | using Pub_Class; |
| | | |
| | | namespace Kanban |
| | | { |
| | | public partial class Sc_CGKB : Form |
| | | { |
| | | public Sc_CGKB() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | public DBUtility.frmBillQueryCondition_New frmCondition; |
| | | public string ViewName = "h_v_Sc_CGKB"; |
| | | public string ModCaption = "éè´çæ¿"; |
| | | public const string ModName = "3702"; |
| | | public const string ModRightName = "Sc_CGKB"; |
| | | public const string ModRightNameEdit = ModRightName + "_Edit"; |
| | | public const string ModRightNameCheck = ModRightName + "_Check"; |
| | | public const string ModRightNameClose = ModRightName + "_Close"; |
| | | public const string ModRightNameDelete = ModRightName + "_Delete"; |
| | | Pub_Class.ClsGridListSum oSumGrid = new Pub_Class.ClsGridListSum(); |
| | | public string sDeptID = "0"; |
| | | DataSet DSet; |
| | | |
| | | int FY = 29; |
| | | // |
| | | private void initGrid() |
| | | { |
| | | //DBUtility.Xt_BaseBillFun.initGridList(grdMain, this.Name); |
| | | //åæ é¢ |
| | | //grdMain.ColumnHeadersDefaultCellStyle.BackColor = Color.FromArgb(60, 134, 202); |
| | | //grdMain.ColumnHeadersDefaultCellStyle.ForeColor = Color.White; |
| | | //grdMain.ColumnHeadersDefaultCellStyle.SelectionBackColor = Color.FromArgb(60, 134, 202); |
| | | //grdMain.ColumnHeadersDefaultCellStyle.SelectionForeColor = Color.White; |
| | | //grdMain.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; |
| | | //grdMain.ColumnHeadersHeight = 40; |
| | | //grdMain.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
| | | ////奿°è¡ |
| | | //grdMain.AlternatingRowsDefaultCellStyle.BackColor = Color.FromArgb(104, 97, 118); |
| | | //grdMain.AlternatingRowsDefaultCellStyle.ForeColor = Color.White; |
| | | //grdMain.AlternatingRowsDefaultCellStyle.SelectionBackColor = Color.FromArgb(104, 97, 118); |
| | | //grdMain.AlternatingRowsDefaultCellStyle.SelectionForeColor = Color.White; |
| | | ////ç½æ ¼èæ¯è² |
| | | //grdMain.BackgroundColor = Color.FromArgb(104, 97, 118); |
| | | ////åæ é¢è¾¹æ¡æ ·å¼ |
| | | //grdMain.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None; ; |
| | | ////æ 颿 ·å¼æ¯å¦ä½¿ç¨ç¨æ·å½å主é¢çæ ·å¼ |
| | | //grdMain.EnableHeadersVisualStyles = false; |
| | | ////éèè¡æ é¢ |
| | | //grdMain.RowHeadersVisible = false; |
| | | ////åå
æ ¼ |
| | | //grdMain.RowsDefaultCellStyle.BackColor = Color.FromArgb(47, 47, 47); |
| | | //grdMain.RowsDefaultCellStyle.ForeColor = Color.White; |
| | | //grdMain.RowsDefaultCellStyle.SelectionBackColor = Color.FromArgb(47, 47, 47); |
| | | //grdMain.RowsDefaultCellStyle.SelectionForeColor = Color.White; |
| | | //grdMain.RowsDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; |
| | | //-------------------- |
| | | DBUtility.Xt_BaseBillFun.initKanBan(this.Name, grdMain, Tool, toolStripLabel1, null, ref FY, timer2, timer3); |
| | | } |
| | | // |
| | | |
| | | private void Display() |
| | | { |
| | | try |
| | | { |
| | | ClsCN SubCn = new ClsCN(); |
| | | string sSql = ""; |
| | | string sWhere = ""; |
| | | //è¿æ»¤æ¡ä»¶ |
| | | //if (frmCondition.SqlStr.Trim().Length == 0) |
| | | // return; |
| | | //sSql = frmCondition.SqlStr + sWhere + " order by HStatus,HDate "; |
| | | sSql = "exec h_p_CGKB "; |
| | | // |
| | | DSet = SubCn.RunProcReturn(sSql, ViewName, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //çæé¦è¡æ é¢ |
| | | if (DSet == null) |
| | | { |
| | | //MessageBox.Show("没æè¿åä»»ä½ç»æ,请å¨è¿æ»¤æ¡ä¸ç¹å»ãæ¢å¤ãæé®,å°è¯å次æ¥è¯¢ï¼" + DBUtility.ClsPub.sExeReturnInfo); |
| | | return; |
| | | } |
| | | //éæ¾å»ç» |
| | | DBUtility.Xt_BaseBillFun.CancelFrozenCol(grdMain); |
| | | // |
| | | grdMain.DataSource = DSet.Tables[0].DefaultView; |
| | | // |
| | | |
| | | //-----------é¢è¦ç¶æ |
| | | //å¼å·¥æ¶é´å°äºå½å¤©æ¶é´ï¼ä½æ¯ä»»å¡åç¶æè¿æ¯ å¾
ç产ï¼ç³»ç»èªå¨é»è²è¦ç¤ºï¼ |
| | | //å®å·¥æ¶é´å°äºå½å¤©æ¶é´ï¼ä½æ¯ä»»å¡åè¿æ¯å¾
ç产æè
卿§è¡çï¼ç³»ç»èªå¨çº¢è²è¦ç¤ºï¼ |
| | | //int HBDateCol = Fun_GetCol("å¼å·¥æ¶é´"); |
| | | //int HEDateCol = Fun_GetCol("å®å·¥æ¶é´"); |
| | | //int HStatusCol = Fun_GetCol("çäº§ç¶æ"); |
| | | //DateTime oNow = DateTime.Today.Date; |
| | | //for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | //{ |
| | | // if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HBDateCol].Value) < oNow && DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HStatusCol].Value) == "å¾
ç产") |
| | | // { |
| | | // grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Yellow; |
| | | // } |
| | | // if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow && DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HStatusCol].Value) == "å¾
ç产") |
| | | // { |
| | | // grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red; |
| | | // } |
| | | //} |
| | | |
| | | //设置å计å |
| | | string sTotalCol = ""; |
| | | sTotalCol = DBUtility.Gy_BaseFun.GetTotalCols(DSet); |
| | | string[] sT; |
| | | sT = sTotalCol.Split(Convert.ToChar(",")); |
| | | oSumGrid.BuildTotalCols(sT); |
| | | // |
| | | //å»ç» |
| | | int FrCol = 10; |
| | | string s = "æ¯"; |
| | | DBUtility.Xt_BaseBillFun.DisplayGrid(grdMain, this.Name, s, FrCol); |
| | | //ç»çº¿ |
| | | //GraphLine(); |
| | | |
| | | //Total(); |
| | | |
| | | //for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | //{ |
| | | // if (i % 2 == 0) |
| | | // { |
| | | // grdMain.Rows[i].DefaultCellStyle.BackColor = Color.SteelBlue; |
| | | // grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.White; |
| | | // } |
| | | // else |
| | | // { |
| | | // grdMain.Rows[i].DefaultCellStyle.BackColor = Color.SlateGray; |
| | | // grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.White; |
| | | // } |
| | | //} |
| | | // |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | // |
| | | private void timer1_Tick(object sender, EventArgs e) |
| | | { |
| | | timer1.Enabled=false; |
| | | initGrid(); |
| | | Display(); |
| | | } |
| | | |
| | | private void tc_Click(object sender, EventArgs e) |
| | | { |
| | | //ä¿åå宽 |
| | | DBUtility.Xt_BaseBillFun.SaveGrid(grdMain, this.Name); |
| | | this.Close(); |
| | | } |
| | | |
| | | private void sx_Click(object sender, EventArgs e) |
| | | { |
| | | timer1.Enabled = true; |
| | | } |
| | | |
| | | private void dj_Click(object sender, EventArgs e) |
| | | { |
| | | Sub_ShowBill(); |
| | | } |
| | | //æ¾ç¤ºåæ® |
| | | private void Sub_ShowBill() |
| | | { |
| | | |
| | | } |
| | | // |
| | | private Int32 Fun_GetCol(string sCol) |
| | | { |
| | | return DBUtility.Xt_BaseBillFun.Fun_GetCol(sCol, grdMain); |
| | | } |
| | | // |
| | | private void Sc_CGKB_Load(object sender, EventArgs e) |
| | | { |
| | | // |
| | | frmCondition = new frmBillQueryCondition_New(); |
| | | this.Text = ModCaption; |
| | | //lblCaption.Text = ModCaption; |
| | | oSumGrid.ogrdMain = grdMain; //åå§å new |
| | | oSumGrid.oGridsum = grdSum; |
| | | initGrid(); |
| | | |
| | | ClsIni oIni = new ClsIni(); |
| | | string sID = ClsIni.ReadIni("Dept", "DeptID", Pub_Class.ClsPub.AppPath + @"\" + "HXErp_SY.ini"); |
| | | if (sID == "æ²¡ææ¾å°ï¼") |
| | | { |
| | | sDeptID = "0"; |
| | | } |
| | | else |
| | | { |
| | | sDeptID = sID; |
| | | } |
| | | } |
| | | |
| | | private void grdMain_DblClick(object sender, EventArgs e) |
| | | { |
| | | //Sc_WorkBillProcReportKB o = new Sc_WorkBillProcReportKB(); |
| | | //if(grdMain.CurrentRow==null) |
| | | // return; |
| | | //o.sICMOInterID = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentCell.RowIndex].Cells[Fun_GetCol("HInterID")].Value); |
| | | //o.sDeptID = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentCell.RowIndex].Cells[Fun_GetCol("HDeptID")].Value); |
| | | //o.ShowDialog(); |
| | | } |
| | | |
| | | private void cx_Click(object sender, EventArgs e) |
| | | { |
| | | frmCondition = new frmBillQueryCondition_New(); |
| | | SetCondition(frmCondition, ViewName, this.Name); |
| | | frmCondition.ShowDialog(); |
| | | if (frmCondition.Tag.ToString() == "OK") |
| | | { |
| | | Display(); |
| | | } |
| | | } |
| | | |
| | | public void SetCondition(frmBillQueryCondition_New frmCondition, string ViewName, string Name) |
| | | { |
| | | frmCondition.Tag = ""; |
| | | frmCondition.ViewName = ViewName; |
| | | frmCondition.ModName = Name; |
| | | } |
| | | |
| | | private void xz_Click(object sender, EventArgs e) |
| | | { |
| | | // |
| | | } |
| | | |
| | | private void sc_Click(object sender, EventArgs e) |
| | | { |
| | | Sub_DeleteBill(); |
| | | } |
| | | //å é¤ |
| | | private void Sub_DeleteBill() |
| | | { |
| | | |
| | | } |
| | | |
| | | private void timer2_Tick(object sender, EventArgs e) |
| | | { |
| | | //timer2.Enabled = false; |
| | | //frmCondition = new frmBillQueryCondition_New(); |
| | | //SetCondition(frmCondition, ViewName, this.Name); |
| | | //frmCondition.ShowDialog(); |
| | | //if (frmCondition.Tag.ToString() == "OK") |
| | | //{ |
| | | //timer1.Enabled = true; |
| | | //} |
| | | |
| | | if (DSet != null && DSet.Tables[0].Rows.Count > FY) |
| | | { |
| | | for (int y = 0; y < FY; y++) |
| | | { |
| | | DataRow newRow = DSet.Tables[0].NewRow(); |
| | | //ç¨ç¸åºå¼å¡«åæ°æ®è¡ |
| | | for (int m = 0; m < DSet.Tables[0].Columns.Count; m++) |
| | | { |
| | | newRow[m] = DSet.Tables[0].Rows[0][m]; |
| | | } |
| | | //å¡«å宿¯ï¼å°æ°æ®è¡æ·»å å°æ°æ®é |
| | | DSet.Tables[0].Rows.Add(newRow); |
| | | |
| | | DSet.Tables[0].Rows.Remove(DSet.Tables[0].Rows[0]); |
| | | } |
| | | |
| | | grdMain.DataSource = null; |
| | | grdMain.DataSource = DSet.Tables[0].DefaultView; |
| | | |
| | | |
| | | ////-----------é¢è¦ç¶æ å°äºçäº æ¾ç¤º 红è²ï¼ å°äº7 æ©è²ï¼å°äºçäº14 é»è² |
| | | //int HYJDateCol = Fun_GetCol("é¢è¦ç¶æï¼å¤©ï¼"); |
| | | //int HSumUnDownQtyCol = Fun_GetCol("æ»æªä¸éè´é"); |
| | | //for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | //{ |
| | | // if (DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HYJDateCol].Value) <= 0) |
| | | // { |
| | | // grdMain.Rows[i].Cells[HYJDateCol].Style.BackColor = Color.Red; |
| | | // } |
| | | // else if (DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HYJDateCol].Value) > 0 && DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HYJDateCol].Value) < 7) |
| | | // { |
| | | // grdMain.Rows[i].Cells[HYJDateCol].Style.BackColor = Color.Orange; |
| | | // } |
| | | // else if (DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HYJDateCol].Value) >= 7 && DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HYJDateCol].Value) <= 14) |
| | | // { |
| | | // grdMain.Rows[i].Cells[HYJDateCol].Style.BackColor = Color.Yellow; |
| | | // grdMain.Rows[i].Cells[HYJDateCol].Style.ForeColor = Color.Black; |
| | | // } |
| | | // //================= //------------æªä¸å 大äº0 æ¾ç¤ºçº¢è² |
| | | // if (DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HSumUnDownQtyCol].Value) > 0) |
| | | // { |
| | | // grdMain.Rows[i].Cells[HSumUnDownQtyCol].Style.BackColor = Color.Red; |
| | | // } |
| | | //} |
| | | |
| | | DBUtility.Xt_BaseBillFun.DisplayGrid(grdMain, this.Name, "", 0); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | private void bclk_Click(object sender, EventArgs e) |
| | | { |
| | | //ä¿åå宽 |
| | | DBUtility.Xt_BaseBillFun.SaveGrid(grdMain, this.Name); |
| | | } |
| | | |
| | | private void mrlk_Click(object sender, EventArgs e) |
| | | { |
| | | DBUtility.Xt_BaseBillFun.DefaultGridView(grdMain, this.Name); |
| | | } |
| | | // |
| | | private void GraphLine() |
| | | { |
| | | int MainIDCol = Fun_GetCol("hmainid"); |
| | | int SubIDCol = Fun_GetCol("hsubid"); |
| | | string s = frmCondition.cmbHComplete.Text; |
| | | long n=0; |
| | | //DBUtility.Xt_BaseBillFun.GraphLine(grdMain, MainIDCol, SubIDCol, s,ref n); |
| | | //æ¾ç¤º |
| | | //lbldj.Text = "æ¥è¯¢åº " + n.ToString() + " å¼ åæ®"; |
| | | //lbljl.Text = "å
±æ " + grdMain.RowCount.ToString() + " æ¡è®°å½"; |
| | | } |
| | | //å®¡æ ¸ |
| | | private void sh_Click(object sender, EventArgs e) |
| | | { |
| | | this.Sub_CheckBill(); |
| | | } |
| | | |
| | | //å®¡æ ¸åæ® |
| | | private void Sub_CheckBill() |
| | | { |
| | | |
| | | } |
| | | //å审忮 |
| | | private void Sub_AbandonCheck() |
| | | { |
| | | |
| | | } |
| | | //åå®¡æ ¸ |
| | | private void qsh_Click(object sender, EventArgs e) |
| | | { |
| | | Sub_AbandonCheck(); |
| | | } |
| | | |
| | | private void GraphicsGrid() |
| | | { |
| | | DBUtility.Xt_BaseBillFun.GraphicsGrid(grdMain); |
| | | } |
| | | |
| | | #region //æå°è®¾ç½® |
| | | |
| | | GridppReport Report; |
| | | //é¢è§ |
| | | private void yl_Click(object sender, EventArgs e) |
| | | { |
| | | //éæ©æå°æ¨¡æ¿ |
| | | BLL.Gy_OpenTmp oFrm = new BLL.Gy_OpenTmp(); |
| | | oFrm.sBillName = ModName; |
| | | oFrm.sBillModel = ModCaption; |
| | | oFrm.ShowDialog(); |
| | | if (oFrm.OKTag == Pub_Class.ClsPub.Enum_OKTag.OKTag_OK) |
| | | { |
| | | // |
| | | Sub_SetReport(oFrm.sOpenTmp); |
| | | Report.PrintPreview(true); |
| | | } |
| | | } |
| | | |
| | | private void Sub_SetReport(string sOpenTmp) |
| | | { |
| | | //å¤æè¡æ° |
| | | // |
| | | Report = new GridppReport(); |
| | | Report.LoadFromFile(DBUtility.ClsPub.AppPath + @"\" + sOpenTmp + ".grf"); //here . |
| | | Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(ReportFetchRecordByDataTable); |
| | | } |
| | | |
| | | private void ReportFetchRecordByDataTable() |
| | | { |
| | | try |
| | | { |
| | | BLL.Utility.FillRecordToReport(Report, grdMain, grdPrint, Fun_GetCol("HMaterID")); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | MessageBox.Show("æå°å¤±è´¥!ï¼" + e.Message); |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | // |
| | | private void grdMain_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | GraphicsGrid(); |
| | | } |
| | | |
| | | //å计 new |
| | | private void Total() |
| | | { |
| | | if (grdMain.Rows.Count > 0 && grdMain.ColumnCount>0) |
| | | { |
| | | oSumGrid.SetGridsum(); |
| | | oSumGrid.Total(); |
| | | } |
| | | } |
| | | //å计 new |
| | | private void grdMain_ColumnWidthChanged(object sender, DataGridViewColumnEventArgs e) |
| | | { |
| | | Total(); |
| | | } |
| | | //å计 new |
| | | private void grdMain_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e) |
| | | { |
| | | Total(); |
| | | } |
| | | //å¼åºEXCEL |
| | | private void dc_Click(object sender, EventArgs e) |
| | | { |
| | | DBUtility.Gy_BaseFun.DataToExcel(this.Text, grdMain); |
| | | } |
| | | int HQty = 0; |
| | | private void timer3_Tick(object sender, EventArgs e) |
| | | { |
| | | if (HQty < 10) |
| | | { |
| | | HQty = HQty + 1; |
| | | } |
| | | else |
| | | { |
| | | HQty = 0; |
| | | timer1.Enabled = true; |
| | | } |
| | | } |
| | | |
| | | private void toolStripButton1_Click(object sender, EventArgs e) |
| | | { |
| | | if (toolStripButton1.Text == "æå") |
| | | { |
| | | toolStripButton1.Text = "è¿è¡"; |
| | | timer2.Enabled = false; |
| | | } |
| | | else |
| | | { |
| | | toolStripButton1.Text = "æå"; |
| | | timer2.Enabled = true; |
| | | } |
| | | } |
| | | |
| | | private void txtHMaterID_KeyDown(object sender, KeyEventArgs e) |
| | | { |
| | | if (e.KeyCode == Keys.Enter) |
| | | { |
| | | timer1.Enabled = true; |
| | | } |
| | | } |
| | | |
| | | private void toolStripButton2_Click(object sender, EventArgs e) |
| | | { |
| | | //Kanban_BaseSet oSZ = new Kanban_BaseSet(); |
| | | //oSZ.HName = this.Name; |
| | | //oSZ.ShowDialog(); |
| | | |
| | | //timer1.Enabled = true; |
| | | |
| | | |
| | | Kanban_BaseSet oSZ = new Kanban_BaseSet(); |
| | | oSZ.HName = this.Name; |
| | | oSZ.ShowDialog(); |
| | | timer1.Enabled = true; |
| | | } |
| | | |
| | | private void grdMain_Sorted(object sender, EventArgs e) |
| | | { |
| | | //-----------é¢è¦ç¶æ |
| | | //å¼å·¥æ¶é´å°äºå½å¤©æ¶é´ï¼ä½æ¯ä»»å¡åç¶æè¿æ¯ å¾
ç产ï¼ç³»ç»èªå¨é»è²è¦ç¤ºï¼ |
| | | //å®å·¥æ¶é´å°äºå½å¤©æ¶é´ï¼ä½æ¯ä»»å¡åè¿æ¯å¾
ç产æè
卿§è¡çï¼ç³»ç»èªå¨çº¢è²è¦ç¤ºï¼ |
| | | int HBDateCol = Fun_GetCol("å¼å·¥æ¶é´"); |
| | | int HEDateCol = Fun_GetCol("å®å·¥æ¶é´"); |
| | | int HStatusCol = Fun_GetCol("çäº§ç¶æ"); |
| | | DateTime oNow = DateTime.Today.Date; |
| | | for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | { |
| | | if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HBDateCol].Value) < oNow && DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HStatusCol].Value) == "å¾
ç产") |
| | | { |
| | | grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Yellow; |
| | | } |
| | | if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow && DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HStatusCol].Value) == "å¾
ç产") |
| | | { |
| | | grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | namespace Kanban |
| | | { |
| | | partial class Sc_CGKB |
| | | { |
| | | /// <summary> |
| | | /// å¿
éç设计å¨åéã |
| | | /// </summary> |
| | | private System.ComponentModel.IContainer components = null; |
| | | |
| | | /// <summary> |
| | | /// æ¸
çæææ£å¨ä½¿ç¨çèµæºã |
| | | /// </summary> |
| | | /// <param name="disposing">妿åºéæ¾æç®¡èµæºï¼ä¸º trueï¼å¦å为 falseã</param> |
| | | protected override void Dispose(bool disposing) |
| | | { |
| | | if (disposing && (components != null)) |
| | | { |
| | | components.Dispose(); |
| | | } |
| | | base.Dispose(disposing); |
| | | } |
| | | |
| | | #region Windows çªä½è®¾è®¡å¨çæç代ç |
| | | |
| | | /// <summary> |
| | | /// è®¾è®¡å¨æ¯ææéçæ¹æ³ - ä¸è¦ |
| | | /// 使ç¨ä»£ç ç¼è¾å¨ä¿®æ¹æ¤æ¹æ³çå
容ã |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | this.components = new System.ComponentModel.Container(); |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Sc_CGKB)); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | this.Tool = new System.Windows.Forms.ToolStrip(); |
| | | this.tc = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel(); |
| | | this.timer1 = new System.Windows.Forms.Timer(this.components); |
| | | this.timer2 = new System.Windows.Forms.Timer(this.components); |
| | | this.grdPrint = new System.Windows.Forms.DataGridView(); |
| | | this.grdSum = new System.Windows.Forms.DataGridView(); |
| | | this.timer3 = new System.Windows.Forms.Timer(this.components); |
| | | this.grdMain = new System.Windows.Forms.DataGridView(); |
| | | this.Tool.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdPrint)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdSum)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdMain)).BeginInit(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // Tool |
| | | // |
| | | this.Tool.AutoSize = false; |
| | | this.Tool.BackColor = System.Drawing.Color.Black; |
| | | this.Tool.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | this.Tool.ImageScalingSize = new System.Drawing.Size(22, 22); |
| | | this.Tool.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
| | | this.tc, |
| | | this.toolStripButton1, |
| | | this.toolStripButton2, |
| | | this.toolStripSeparator3, |
| | | this.toolStripSeparator9, |
| | | this.toolStripSeparator7, |
| | | this.toolStripLabel1}); |
| | | this.Tool.Location = new System.Drawing.Point(0, 0); |
| | | this.Tool.Name = "Tool"; |
| | | this.Tool.Padding = new System.Windows.Forms.Padding(0); |
| | | this.Tool.Size = new System.Drawing.Size(906, 50); |
| | | this.Tool.Stretch = true; |
| | | this.Tool.TabIndex = 16; |
| | | this.Tool.Text = "toolStrip1"; |
| | | // |
| | | // tc |
| | | // |
| | | this.tc.AutoSize = false; |
| | | this.tc.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; |
| | | this.tc.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.tc.ForeColor = System.Drawing.Color.White; |
| | | this.tc.Image = ((System.Drawing.Image)(resources.GetObject("tc.Image"))); |
| | | this.tc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.tc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.tc.ImageTransparentColor = System.Drawing.Color.White; |
| | | this.tc.Name = "tc"; |
| | | this.tc.Size = new System.Drawing.Size(50, 47); |
| | | this.tc.Text = "<è¿å"; |
| | | this.tc.TextImageRelation = System.Windows.Forms.TextImageRelation.TextAboveImage; |
| | | this.tc.Click += new System.EventHandler(this.tc_Click); |
| | | // |
| | | // toolStripButton1 |
| | | // |
| | | this.toolStripButton1.AutoSize = false; |
| | | this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; |
| | | this.toolStripButton1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.toolStripButton1.ForeColor = System.Drawing.Color.White; |
| | | this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); |
| | | this.toolStripButton1.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.toolStripButton1.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.White; |
| | | this.toolStripButton1.Name = "toolStripButton1"; |
| | | this.toolStripButton1.Size = new System.Drawing.Size(50, 47); |
| | | this.toolStripButton1.Text = "æå"; |
| | | this.toolStripButton1.TextImageRelation = System.Windows.Forms.TextImageRelation.TextAboveImage; |
| | | this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); |
| | | // |
| | | // toolStripButton2 |
| | | // |
| | | this.toolStripButton2.AutoSize = false; |
| | | this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; |
| | | this.toolStripButton2.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.toolStripButton2.ForeColor = System.Drawing.Color.White; |
| | | this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta; |
| | | this.toolStripButton2.Name = "toolStripButton2"; |
| | | this.toolStripButton2.Size = new System.Drawing.Size(36, 47); |
| | | this.toolStripButton2.Text = "设置"; |
| | | this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click); |
| | | // |
| | | // toolStripSeparator3 |
| | | // |
| | | this.toolStripSeparator3.Name = "toolStripSeparator3"; |
| | | this.toolStripSeparator3.Size = new System.Drawing.Size(6, 50); |
| | | // |
| | | // toolStripSeparator9 |
| | | // |
| | | this.toolStripSeparator9.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; |
| | | this.toolStripSeparator9.Name = "toolStripSeparator9"; |
| | | this.toolStripSeparator9.Size = new System.Drawing.Size(6, 50); |
| | | // |
| | | // toolStripSeparator7 |
| | | // |
| | | this.toolStripSeparator7.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; |
| | | this.toolStripSeparator7.Name = "toolStripSeparator7"; |
| | | this.toolStripSeparator7.Size = new System.Drawing.Size(6, 50); |
| | | // |
| | | // toolStripLabel1 |
| | | // |
| | | this.toolStripLabel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; |
| | | this.toolStripLabel1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; |
| | | this.toolStripLabel1.Font = new System.Drawing.Font("Microsoft YaHei UI", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.toolStripLabel1.ForeColor = System.Drawing.Color.White; |
| | | this.toolStripLabel1.Name = "toolStripLabel1"; |
| | | this.toolStripLabel1.Size = new System.Drawing.Size(92, 47); |
| | | this.toolStripLabel1.Text = "éè´çæ¿"; |
| | | this.toolStripLabel1.TextDirection = System.Windows.Forms.ToolStripTextDirection.Horizontal; |
| | | // |
| | | // timer1 |
| | | // |
| | | this.timer1.Enabled = true; |
| | | this.timer1.Tick += new System.EventHandler(this.timer1_Tick); |
| | | // |
| | | // timer2 |
| | | // |
| | | this.timer2.Enabled = true; |
| | | this.timer2.Interval = 20000; |
| | | this.timer2.Tick += new System.EventHandler(this.timer2_Tick); |
| | | // |
| | | // grdPrint |
| | | // |
| | | this.grdPrint.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
| | | this.grdPrint.Location = new System.Drawing.Point(772, 146); |
| | | this.grdPrint.Name = "grdPrint"; |
| | | this.grdPrint.RowTemplate.Height = 23; |
| | | this.grdPrint.Size = new System.Drawing.Size(25, 24); |
| | | this.grdPrint.TabIndex = 8; |
| | | this.grdPrint.Visible = false; |
| | | // |
| | | // grdSum |
| | | // |
| | | this.grdSum.AllowUserToAddRows = false; |
| | | this.grdSum.AllowUserToDeleteRows = false; |
| | | this.grdSum.BackgroundColor = System.Drawing.SystemColors.Control; |
| | | this.grdSum.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
| | | this.grdSum.Dock = System.Windows.Forms.DockStyle.Bottom; |
| | | this.grdSum.Location = new System.Drawing.Point(0, 512); |
| | | this.grdSum.Name = "grdSum"; |
| | | this.grdSum.ReadOnly = true; |
| | | this.grdSum.RowTemplate.Height = 23; |
| | | this.grdSum.ScrollBars = System.Windows.Forms.ScrollBars.None; |
| | | this.grdSum.Size = new System.Drawing.Size(906, 19); |
| | | this.grdSum.TabIndex = 47; |
| | | this.grdSum.Visible = false; |
| | | // |
| | | // timer3 |
| | | // |
| | | this.timer3.Enabled = true; |
| | | this.timer3.Interval = 1800000; |
| | | this.timer3.Tick += new System.EventHandler(this.timer3_Tick); |
| | | // |
| | | // grdMain |
| | | // |
| | | this.grdMain.AllowUserToAddRows = false; |
| | | this.grdMain.AllowUserToDeleteRows = false; |
| | | dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(97)))), ((int)(((byte)(118))))); |
| | | dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(97)))), ((int)(((byte)(118))))); |
| | | dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.White; |
| | | this.grdMain.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
| | | this.grdMain.BackgroundColor = System.Drawing.Color.Black; |
| | | this.grdMain.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
| | | dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
| | | dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(134)))), ((int)(((byte)(202))))); |
| | | dataGridViewCellStyle2.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(134)))), ((int)(((byte)(202))))); |
| | | dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.grdMain.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
| | | this.grdMain.ColumnHeadersHeight = 40; |
| | | this.grdMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
| | | this.grdMain.Dock = System.Windows.Forms.DockStyle.Fill; |
| | | this.grdMain.EnableHeadersVisualStyles = false; |
| | | this.grdMain.Location = new System.Drawing.Point(0, 50); |
| | | this.grdMain.Name = "grdMain"; |
| | | this.grdMain.ReadOnly = true; |
| | | this.grdMain.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
| | | dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
| | | dataGridViewCellStyle3.BackColor = System.Drawing.Color.CornflowerBlue; |
| | | dataGridViewCellStyle3.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText; |
| | | dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
| | | dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
| | | dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.grdMain.RowHeadersDefaultCellStyle = dataGridViewCellStyle3; |
| | | this.grdMain.RowHeadersVisible = false; |
| | | dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
| | | dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(47)))), ((int)(((byte)(47)))), ((int)(((byte)(47))))); |
| | | dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(47)))), ((int)(((byte)(47)))), ((int)(((byte)(47))))); |
| | | dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.White; |
| | | this.grdMain.RowsDefaultCellStyle = dataGridViewCellStyle4; |
| | | this.grdMain.RowTemplate.Height = 23; |
| | | this.grdMain.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; |
| | | this.grdMain.Size = new System.Drawing.Size(906, 462); |
| | | this.grdMain.TabIndex = 48; |
| | | this.grdMain.CellMouseUp += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.grdMain_CellMouseUp); |
| | | this.grdMain.ColumnWidthChanged += new System.Windows.Forms.DataGridViewColumnEventHandler(this.grdMain_ColumnWidthChanged); |
| | | this.grdMain.Sorted += new System.EventHandler(this.grdMain_Sorted); |
| | | this.grdMain.DoubleClick += new System.EventHandler(this.grdMain_DblClick); |
| | | // |
| | | // Sc_CGKB |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(906, 531); |
| | | this.Controls.Add(this.grdMain); |
| | | this.Controls.Add(this.grdSum); |
| | | this.Controls.Add(this.Tool); |
| | | this.Controls.Add(this.grdPrint); |
| | | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
| | | this.Name = "Sc_CGKB"; |
| | | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
| | | this.Text = "åæ®å表"; |
| | | this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
| | | this.Load += new System.EventHandler(this.Sc_CGKB_Load); |
| | | this.Tool.ResumeLayout(false); |
| | | this.Tool.PerformLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdPrint)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdSum)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdMain)).EndInit(); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private System.Windows.Forms.ToolStrip Tool; |
| | | private System.Windows.Forms.ToolStripButton tc; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; |
| | | public System.Windows.Forms.Timer timer1; |
| | | private System.Windows.Forms.Timer timer2; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator9; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator7; |
| | | private System.Windows.Forms.DataGridView grdPrint; |
| | | private System.Windows.Forms.DataGridView grdSum; |
| | | private System.Windows.Forms.Timer timer3; |
| | | private System.Windows.Forms.ToolStripButton toolStripButton1; |
| | | private System.Windows.Forms.ToolStripButton toolStripButton2; |
| | | private System.Windows.Forms.ToolStripLabel toolStripLabel1; |
| | | private System.Windows.Forms.DataGridView grdMain; |
| | | } |
| | | } |
New file |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | | The primary goals of this format is to allow a simple XML format |
| | | that is mostly human readable. The generation and parsing of the |
| | | various data types are done through the TypeConverter classes |
| | | associated with the data types. |
| | | |
| | | Example: |
| | | |
| | | ... ado.net/XML headers & schema ... |
| | | <resheader name="resmimetype">text/microsoft-resx</resheader> |
| | | <resheader name="version">2.0</resheader> |
| | | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
| | | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
| | | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
| | | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
| | | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
| | | <value>[base64 mime encoded serialized .NET Framework object]</value> |
| | | </data> |
| | | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
| | | <comment>This is a comment</comment> |
| | | </data> |
| | | |
| | | There are any number of "resheader" rows that contain simple |
| | | name/value pairs. |
| | | |
| | | Each data row contains a name, and value. The row also contains a |
| | | type or mimetype. Type corresponds to a .NET class that support |
| | | text/value conversion through the TypeConverter architecture. |
| | | Classes that don't support this are serialized and stored with the |
| | | mimetype set. |
| | | |
| | | The mimetype is used for serialized objects, and tells the |
| | | ResXResourceReader how to depersist the object. This is currently not |
| | | extensible. For a given mimetype the value must be set accordingly: |
| | | |
| | | Note - application/x-microsoft.net.object.binary.base64 is the format |
| | | that the ResXResourceWriter will generate, however the reader can |
| | | read any of the formats listed below. |
| | | |
| | | mimetype: application/x-microsoft.net.object.binary.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.bytearray.base64 |
| | | value : The object must be serialized into a byte array |
| | | : using a System.ComponentModel.TypeConverter |
| | | : and then encoded with base64 encoding. |
| | | --> |
| | | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
| | | <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
| | | <xsd:element name="root" msdata:IsDataSet="true"> |
| | | <xsd:complexType> |
| | | <xsd:choice maxOccurs="unbounded"> |
| | | <xsd:element name="metadata"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" use="required" type="xsd:string" /> |
| | | <xsd:attribute name="type" type="xsd:string" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="assembly"> |
| | | <xsd:complexType> |
| | | <xsd:attribute name="alias" type="xsd:string" /> |
| | | <xsd:attribute name="name" type="xsd:string" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="data"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
| | | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="resheader"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:choice> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:schema> |
| | | <resheader name="resmimetype"> |
| | | <value>text/microsoft-resx</value> |
| | | </resheader> |
| | | <resheader name="version"> |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <metadata name="Tool.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>17, 17</value> |
| | | </metadata> |
| | | <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
| | | <data name="tc.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | | YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADCSURBVDhPpZJdCoMwEIRzpxxJ6Ak2z/ZZnysIBXuUHMA7 |
| | | bXeWrGBMYkoHh+gk8xl/XEneP7jXqXIWJkIgHscnT/PEy2vhz7ZhMQ/Dm5l3ObRcB1ACzAKQ6FTcV69G |
| | | rgWTbUl3QFQtFgGpfAAoAVDOi2ZbrwW5hwY4N+P6FmDlkrsBq6zOy3AXIEkhGHMbIMaorgGgI8Cu7CsY |
| | | wOZbAEgDBch/gOveRzgJAKLwH0CGJsDmxU1dAMiSu3R5iZr+oJuic1+SJ5jRbOqnmgAAAABJRU5ErkJg |
| | | gg== |
| | | </value> |
| | | </data> |
| | | <data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | | YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADCSURBVDhPpZJdCoMwEIRzpxxJ6Ak2z/ZZnysIBXuUHMA7 |
| | | bXeWrGBMYkoHh+gk8xl/XEneP7jXqXIWJkIgHscnT/PEy2vhz7ZhMQ/Dm5l3ObRcB1ACzAKQ6FTcV69G |
| | | rgWTbUl3QFQtFgGpfAAoAVDOi2ZbrwW5hwY4N+P6FmDlkrsBq6zOy3AXIEkhGHMbIMaorgGgI8Cu7CsY |
| | | wOZbAEgDBch/gOveRzgJAKLwH0CGJsDmxU1dAMiSu3R5iZr+oJuic1+SJ5jRbOqnmgAAAABJRU5ErkJg |
| | | gg== |
| | | </value> |
| | | </data> |
| | | <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>102, 16</value> |
| | | </metadata> |
| | | <metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>191, 16</value> |
| | | </metadata> |
| | | <metadata name="timer3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>281, 16</value> |
| | | </metadata> |
| | | <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
| | | <value>37</value> |
| | | </metadata> |
| | | </root> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Text; |
| | | using System.Windows.Forms; |
| | | using gregn6Lib; |
| | | using SQLHelper; |
| | | using DBUtility; |
| | | using Pub_Class; |
| | | |
| | | namespace Kanban |
| | | { |
| | | public partial class Sc_CJKB : Form |
| | | { |
| | | public Sc_CJKB() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | public DBUtility.frmBillQueryCondition_New frmCondition; |
| | | public string ViewName = "h_v_Sc_CJKB"; |
| | | public string ModCaption = "车é´çæ¿"; |
| | | public const string ModName = "3702"; |
| | | public const string ModRightName = "Sc_CJKB"; |
| | | public const string ModRightNameEdit = ModRightName + "_Edit"; |
| | | public const string ModRightNameCheck = ModRightName + "_Check"; |
| | | public const string ModRightNameClose = ModRightName + "_Close"; |
| | | public const string ModRightNameDelete = ModRightName + "_Delete"; |
| | | Pub_Class.ClsGridListSum oSumGrid = new Pub_Class.ClsGridListSum(); |
| | | public string sDeptID = "0"; |
| | | DataSet DSet; |
| | | |
| | | int FY = 29; |
| | | // |
| | | private void initGrid() |
| | | { |
| | | //DBUtility.Xt_BaseBillFun.initGridList(grdMain, this.Name); |
| | | //åæ é¢ |
| | | //grdMain.ColumnHeadersDefaultCellStyle.BackColor = Color.FromArgb(60, 134, 202); |
| | | //grdMain.ColumnHeadersDefaultCellStyle.ForeColor = Color.White; |
| | | //grdMain.ColumnHeadersDefaultCellStyle.SelectionBackColor = Color.FromArgb(60, 134, 202); |
| | | //grdMain.ColumnHeadersDefaultCellStyle.SelectionForeColor = Color.White; |
| | | //grdMain.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; |
| | | //grdMain.ColumnHeadersHeight = 40; |
| | | //grdMain.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
| | | ////奿°è¡ |
| | | //grdMain.AlternatingRowsDefaultCellStyle.BackColor = Color.FromArgb(104, 97, 118); |
| | | //grdMain.AlternatingRowsDefaultCellStyle.ForeColor = Color.White; |
| | | //grdMain.AlternatingRowsDefaultCellStyle.SelectionBackColor = Color.FromArgb(104, 97, 118); |
| | | //grdMain.AlternatingRowsDefaultCellStyle.SelectionForeColor = Color.White; |
| | | ////ç½æ ¼èæ¯è² |
| | | //grdMain.BackgroundColor = Color.FromArgb(104, 97, 118); |
| | | ////åæ é¢è¾¹æ¡æ ·å¼ |
| | | //grdMain.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None; ; |
| | | ////æ 颿 ·å¼æ¯å¦ä½¿ç¨ç¨æ·å½å主é¢çæ ·å¼ |
| | | //grdMain.EnableHeadersVisualStyles = false; |
| | | ////éèè¡æ é¢ |
| | | //grdMain.RowHeadersVisible = false; |
| | | ////åå
æ ¼ |
| | | //grdMain.RowsDefaultCellStyle.BackColor = Color.FromArgb(47, 47, 47); |
| | | //grdMain.RowsDefaultCellStyle.ForeColor = Color.White; |
| | | //grdMain.RowsDefaultCellStyle.SelectionBackColor = Color.FromArgb(47, 47, 47); |
| | | //grdMain.RowsDefaultCellStyle.SelectionForeColor = Color.White; |
| | | //grdMain.RowsDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; |
| | | //-------------------- |
| | | DBUtility.Xt_BaseBillFun.initKanBan(this.Name, grdMain, Tool, toolStripLabel1, null, ref FY, timer2, timer3); |
| | | } |
| | | // |
| | | |
| | | private void Display() |
| | | { |
| | | try |
| | | { |
| | | ClsCN SubCn = new ClsCN(); |
| | | string sSql = ""; |
| | | string sWhere = ""; |
| | | ClsIni oIni = new ClsIni(); |
| | | string sID = ClsIni.ReadIni("Dept", "DeptID", Pub_Class.ClsPub.AppPath + @"\" + "HXErp.ini"); |
| | | sDeptID = sID; |
| | | //è¿æ»¤æ¡ä»¶ |
| | | //if (frmCondition.SqlStr.Trim().Length == 0) |
| | | // return; |
| | | //sSql = frmCondition.SqlStr + sWhere + " order by HStatus,HDate "; |
| | | //sSql = "exec h_p_CJKB "; |
| | | sSql = "exec h_p_CJKB " + sDeptID; |
| | | // |
| | | DSet = SubCn.RunProcReturn(sSql, ViewName, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //çæé¦è¡æ é¢ |
| | | if (DSet == null) |
| | | { |
| | | //MessageBox.Show("没æè¿åä»»ä½ç»æ,请å¨è¿æ»¤æ¡ä¸ç¹å»ãæ¢å¤ãæé®,å°è¯å次æ¥è¯¢ï¼" + DBUtility.ClsPub.sExeReturnInfo); |
| | | return; |
| | | } |
| | | //éæ¾å»ç» |
| | | DBUtility.Xt_BaseBillFun.CancelFrozenCol(grdMain); |
| | | // |
| | | grdMain.DataSource = DSet.Tables[0].DefaultView; |
| | | // |
| | | |
| | | //-----------é¢è¦ç¶æ |
| | | //å¼å·¥æ¶é´å°äºå½å¤©æ¶é´ï¼ä½æ¯ä»»å¡åç¶æè¿æ¯ å¾
ç产ï¼ç³»ç»èªå¨é»è²è¦ç¤ºï¼ |
| | | //å®å·¥æ¶é´å°äºå½å¤©æ¶é´ï¼ä½æ¯ä»»å¡åè¿æ¯å¾
ç产æè
卿§è¡çï¼ç³»ç»èªå¨çº¢è²è¦ç¤ºï¼ |
| | | //int HBDateCol = Fun_GetCol("å¼å·¥æ¶é´"); |
| | | //int HEDateCol = Fun_GetCol("å®å·¥æ¶é´"); |
| | | //int HStatusCol = Fun_GetCol("çäº§ç¶æ"); |
| | | //DateTime oNow = DateTime.Today.Date; |
| | | //for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | //{ |
| | | // if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HBDateCol].Value) < oNow && DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HStatusCol].Value) == "å¾
ç产") |
| | | // { |
| | | // grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Yellow; |
| | | // } |
| | | // if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow && DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HStatusCol].Value) == "å¾
ç产") |
| | | // { |
| | | // grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red; |
| | | // } |
| | | //} |
| | | |
| | | //设置å计å |
| | | string sTotalCol = ""; |
| | | sTotalCol = DBUtility.Gy_BaseFun.GetTotalCols(DSet); |
| | | string[] sT; |
| | | sT = sTotalCol.Split(Convert.ToChar(",")); |
| | | oSumGrid.BuildTotalCols(sT); |
| | | // |
| | | //å»ç» |
| | | int FrCol = 10; |
| | | string s = "æ¯"; |
| | | DBUtility.Xt_BaseBillFun.DisplayGrid(grdMain, this.Name, s, FrCol); |
| | | //ç»çº¿ |
| | | //GraphLine(); |
| | | |
| | | //Total(); |
| | | |
| | | //for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | //{ |
| | | // if (i % 2 == 0) |
| | | // { |
| | | // grdMain.Rows[i].DefaultCellStyle.BackColor = Color.SteelBlue; |
| | | // grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.White; |
| | | // } |
| | | // else |
| | | // { |
| | | // grdMain.Rows[i].DefaultCellStyle.BackColor = Color.SlateGray; |
| | | // grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.White; |
| | | // } |
| | | //} |
| | | // |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | // |
| | | private void timer1_Tick(object sender, EventArgs e) |
| | | { |
| | | timer1.Enabled=false; |
| | | initGrid(); |
| | | Display(); |
| | | } |
| | | |
| | | private void tc_Click(object sender, EventArgs e) |
| | | { |
| | | //ä¿åå宽 |
| | | DBUtility.Xt_BaseBillFun.SaveGrid(grdMain, this.Name); |
| | | this.Close(); |
| | | } |
| | | |
| | | private void sx_Click(object sender, EventArgs e) |
| | | { |
| | | timer1.Enabled = true; |
| | | } |
| | | |
| | | private void dj_Click(object sender, EventArgs e) |
| | | { |
| | | Sub_ShowBill(); |
| | | } |
| | | //æ¾ç¤ºåæ® |
| | | private void Sub_ShowBill() |
| | | { |
| | | |
| | | } |
| | | // |
| | | private Int32 Fun_GetCol(string sCol) |
| | | { |
| | | return DBUtility.Xt_BaseBillFun.Fun_GetCol(sCol, grdMain); |
| | | } |
| | | // |
| | | private void Sc_CJKB_Load(object sender, EventArgs e) |
| | | { |
| | | // |
| | | frmCondition = new frmBillQueryCondition_New(); |
| | | this.Text = ModCaption; |
| | | //lblCaption.Text = ModCaption; |
| | | oSumGrid.ogrdMain = grdMain; //åå§å new |
| | | oSumGrid.oGridsum = grdSum; |
| | | initGrid(); |
| | | |
| | | ClsIni oIni = new ClsIni(); |
| | | string sID = ClsIni.ReadIni("Dept", "DeptID", Pub_Class.ClsPub.AppPath + @"\" + "HXErp_SY.ini"); |
| | | if (sID == "æ²¡ææ¾å°ï¼") |
| | | { |
| | | sDeptID = "0"; |
| | | } |
| | | else |
| | | { |
| | | sDeptID = sID; |
| | | } |
| | | } |
| | | |
| | | private void grdMain_DblClick(object sender, EventArgs e) |
| | | { |
| | | //Sc_WorkBillProcReportKB o = new Sc_WorkBillProcReportKB(); |
| | | //if(grdMain.CurrentRow==null) |
| | | // return; |
| | | //o.sICMOInterID = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentCell.RowIndex].Cells[Fun_GetCol("HInterID")].Value); |
| | | //o.sDeptID = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentCell.RowIndex].Cells[Fun_GetCol("HDeptID")].Value); |
| | | //o.ShowDialog(); |
| | | } |
| | | |
| | | private void cx_Click(object sender, EventArgs e) |
| | | { |
| | | frmCondition = new frmBillQueryCondition_New(); |
| | | SetCondition(frmCondition, ViewName, this.Name); |
| | | frmCondition.ShowDialog(); |
| | | if (frmCondition.Tag.ToString() == "OK") |
| | | { |
| | | Display(); |
| | | } |
| | | } |
| | | |
| | | public void SetCondition(frmBillQueryCondition_New frmCondition, string ViewName, string Name) |
| | | { |
| | | frmCondition.Tag = ""; |
| | | frmCondition.ViewName = ViewName; |
| | | frmCondition.ModName = Name; |
| | | } |
| | | |
| | | private void xz_Click(object sender, EventArgs e) |
| | | { |
| | | // |
| | | } |
| | | |
| | | private void sc_Click(object sender, EventArgs e) |
| | | { |
| | | Sub_DeleteBill(); |
| | | } |
| | | //å é¤ |
| | | private void Sub_DeleteBill() |
| | | { |
| | | |
| | | } |
| | | |
| | | private void timer2_Tick(object sender, EventArgs e) |
| | | { |
| | | //timer2.Enabled = false; |
| | | //frmCondition = new frmBillQueryCondition_New(); |
| | | //SetCondition(frmCondition, ViewName, this.Name); |
| | | //frmCondition.ShowDialog(); |
| | | //if (frmCondition.Tag.ToString() == "OK") |
| | | //{ |
| | | //timer1.Enabled = true; |
| | | //} |
| | | |
| | | if (DSet != null && DSet.Tables[0].Rows.Count > FY) |
| | | { |
| | | for (int y = 0; y < FY; y++) |
| | | { |
| | | DataRow newRow = DSet.Tables[0].NewRow(); |
| | | //ç¨ç¸åºå¼å¡«åæ°æ®è¡ |
| | | for (int m = 0; m < DSet.Tables[0].Columns.Count; m++) |
| | | { |
| | | newRow[m] = DSet.Tables[0].Rows[0][m]; |
| | | } |
| | | //å¡«å宿¯ï¼å°æ°æ®è¡æ·»å å°æ°æ®é |
| | | DSet.Tables[0].Rows.Add(newRow); |
| | | |
| | | DSet.Tables[0].Rows.Remove(DSet.Tables[0].Rows[0]); |
| | | } |
| | | |
| | | grdMain.DataSource = null; |
| | | grdMain.DataSource = DSet.Tables[0].DefaultView; |
| | | |
| | | |
| | | ////-----------é¢è¦ç¶æ å°äºçäº æ¾ç¤º 红è²ï¼ å°äº7 æ©è²ï¼å°äºçäº14 é»è² |
| | | //int HYJDateCol = Fun_GetCol("é¢è¦ç¶æï¼å¤©ï¼"); |
| | | //int HSumUnDownQtyCol = Fun_GetCol("æ»æªä¸éè´é"); |
| | | //for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | //{ |
| | | // if (DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HYJDateCol].Value) <= 0) |
| | | // { |
| | | // grdMain.Rows[i].Cells[HYJDateCol].Style.BackColor = Color.Red; |
| | | // } |
| | | // else if (DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HYJDateCol].Value) > 0 && DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HYJDateCol].Value) < 7) |
| | | // { |
| | | // grdMain.Rows[i].Cells[HYJDateCol].Style.BackColor = Color.Orange; |
| | | // } |
| | | // else if (DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HYJDateCol].Value) >= 7 && DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HYJDateCol].Value) <= 14) |
| | | // { |
| | | // grdMain.Rows[i].Cells[HYJDateCol].Style.BackColor = Color.Yellow; |
| | | // grdMain.Rows[i].Cells[HYJDateCol].Style.ForeColor = Color.Black; |
| | | // } |
| | | // //================= //------------æªä¸å 大äº0 æ¾ç¤ºçº¢è² |
| | | // if (DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HSumUnDownQtyCol].Value) > 0) |
| | | // { |
| | | // grdMain.Rows[i].Cells[HSumUnDownQtyCol].Style.BackColor = Color.Red; |
| | | // } |
| | | //} |
| | | |
| | | DBUtility.Xt_BaseBillFun.DisplayGrid(grdMain, this.Name, "", 0); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | private void bclk_Click(object sender, EventArgs e) |
| | | { |
| | | //ä¿åå宽 |
| | | DBUtility.Xt_BaseBillFun.SaveGrid(grdMain, this.Name); |
| | | } |
| | | |
| | | private void mrlk_Click(object sender, EventArgs e) |
| | | { |
| | | DBUtility.Xt_BaseBillFun.DefaultGridView(grdMain, this.Name); |
| | | } |
| | | // |
| | | private void GraphLine() |
| | | { |
| | | int MainIDCol = Fun_GetCol("hmainid"); |
| | | int SubIDCol = Fun_GetCol("hsubid"); |
| | | string s = frmCondition.cmbHComplete.Text; |
| | | long n=0; |
| | | //DBUtility.Xt_BaseBillFun.GraphLine(grdMain, MainIDCol, SubIDCol, s,ref n); |
| | | //æ¾ç¤º |
| | | //lbldj.Text = "æ¥è¯¢åº " + n.ToString() + " å¼ åæ®"; |
| | | //lbljl.Text = "å
±æ " + grdMain.RowCount.ToString() + " æ¡è®°å½"; |
| | | } |
| | | //å®¡æ ¸ |
| | | private void sh_Click(object sender, EventArgs e) |
| | | { |
| | | this.Sub_CheckBill(); |
| | | } |
| | | |
| | | //å®¡æ ¸åæ® |
| | | private void Sub_CheckBill() |
| | | { |
| | | |
| | | } |
| | | //å审忮 |
| | | private void Sub_AbandonCheck() |
| | | { |
| | | |
| | | } |
| | | //åå®¡æ ¸ |
| | | private void qsh_Click(object sender, EventArgs e) |
| | | { |
| | | Sub_AbandonCheck(); |
| | | } |
| | | |
| | | private void GraphicsGrid() |
| | | { |
| | | DBUtility.Xt_BaseBillFun.GraphicsGrid(grdMain); |
| | | } |
| | | |
| | | #region //æå°è®¾ç½® |
| | | |
| | | GridppReport Report; |
| | | //é¢è§ |
| | | private void yl_Click(object sender, EventArgs e) |
| | | { |
| | | //éæ©æå°æ¨¡æ¿ |
| | | BLL.Gy_OpenTmp oFrm = new BLL.Gy_OpenTmp(); |
| | | oFrm.sBillName = ModName; |
| | | oFrm.sBillModel = ModCaption; |
| | | oFrm.ShowDialog(); |
| | | if (oFrm.OKTag == Pub_Class.ClsPub.Enum_OKTag.OKTag_OK) |
| | | { |
| | | // |
| | | Sub_SetReport(oFrm.sOpenTmp); |
| | | Report.PrintPreview(true); |
| | | } |
| | | } |
| | | |
| | | private void Sub_SetReport(string sOpenTmp) |
| | | { |
| | | //å¤æè¡æ° |
| | | // |
| | | Report = new GridppReport(); |
| | | Report.LoadFromFile(DBUtility.ClsPub.AppPath + @"\" + sOpenTmp + ".grf"); //here . |
| | | Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(ReportFetchRecordByDataTable); |
| | | } |
| | | |
| | | private void ReportFetchRecordByDataTable() |
| | | { |
| | | try |
| | | { |
| | | BLL.Utility.FillRecordToReport(Report, grdMain, grdPrint, Fun_GetCol("HMaterID")); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | MessageBox.Show("æå°å¤±è´¥!ï¼" + e.Message); |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | // |
| | | private void grdMain_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | GraphicsGrid(); |
| | | } |
| | | |
| | | //å计 new |
| | | private void Total() |
| | | { |
| | | if (grdMain.Rows.Count > 0 && grdMain.ColumnCount>0) |
| | | { |
| | | oSumGrid.SetGridsum(); |
| | | oSumGrid.Total(); |
| | | } |
| | | } |
| | | //å计 new |
| | | private void grdMain_ColumnWidthChanged(object sender, DataGridViewColumnEventArgs e) |
| | | { |
| | | Total(); |
| | | } |
| | | //å计 new |
| | | private void grdMain_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e) |
| | | { |
| | | Total(); |
| | | } |
| | | //å¼åºEXCEL |
| | | private void dc_Click(object sender, EventArgs e) |
| | | { |
| | | DBUtility.Gy_BaseFun.DataToExcel(this.Text, grdMain); |
| | | } |
| | | int HQty = 0; |
| | | private void timer3_Tick(object sender, EventArgs e) |
| | | { |
| | | if (HQty < 10) |
| | | { |
| | | HQty = HQty + 1; |
| | | } |
| | | else |
| | | { |
| | | HQty = 0; |
| | | timer1.Enabled = true; |
| | | } |
| | | } |
| | | |
| | | private void toolStripButton1_Click(object sender, EventArgs e) |
| | | { |
| | | if (toolStripButton1.Text == "æå") |
| | | { |
| | | toolStripButton1.Text = "è¿è¡"; |
| | | timer2.Enabled = false; |
| | | } |
| | | else |
| | | { |
| | | toolStripButton1.Text = "æå"; |
| | | timer2.Enabled = true; |
| | | } |
| | | } |
| | | |
| | | private void txtHMaterID_KeyDown(object sender, KeyEventArgs e) |
| | | { |
| | | if (e.KeyCode == Keys.Enter) |
| | | { |
| | | timer1.Enabled = true; |
| | | } |
| | | } |
| | | |
| | | private void toolStripButton2_Click(object sender, EventArgs e) |
| | | { |
| | | //Kanban_BaseSet oSZ = new Kanban_BaseSet(); |
| | | //oSZ.HName = this.Name; |
| | | //oSZ.ShowDialog(); |
| | | //timer1.Enabled = true; |
| | | |
| | | Kanban_BaseSet oSZ = new Kanban_BaseSet(); |
| | | oSZ.HName = this.Name; |
| | | oSZ.ShowDialog(); |
| | | timer1.Enabled = true; |
| | | } |
| | | |
| | | private void grdMain_Sorted(object sender, EventArgs e) |
| | | { |
| | | //-----------é¢è¦ç¶æ |
| | | //å¼å·¥æ¶é´å°äºå½å¤©æ¶é´ï¼ä½æ¯ä»»å¡åç¶æè¿æ¯ å¾
ç产ï¼ç³»ç»èªå¨é»è²è¦ç¤ºï¼ |
| | | //å®å·¥æ¶é´å°äºå½å¤©æ¶é´ï¼ä½æ¯ä»»å¡åè¿æ¯å¾
ç产æè
卿§è¡çï¼ç³»ç»èªå¨çº¢è²è¦ç¤ºï¼ |
| | | int HBDateCol = Fun_GetCol("å¼å·¥æ¶é´"); |
| | | int HEDateCol = Fun_GetCol("å®å·¥æ¶é´"); |
| | | int HStatusCol = Fun_GetCol("çäº§ç¶æ"); |
| | | DateTime oNow = DateTime.Today.Date; |
| | | for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | { |
| | | if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HBDateCol].Value) < oNow && DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HStatusCol].Value) == "å¾
ç产") |
| | | { |
| | | grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Yellow; |
| | | } |
| | | if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow && DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HStatusCol].Value) == "å¾
ç产") |
| | | { |
| | | grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | namespace Kanban |
| | | { |
| | | partial class Sc_CJKB |
| | | { |
| | | /// <summary> |
| | | /// å¿
éç设计å¨åéã |
| | | /// </summary> |
| | | private System.ComponentModel.IContainer components = null; |
| | | |
| | | /// <summary> |
| | | /// æ¸
çæææ£å¨ä½¿ç¨çèµæºã |
| | | /// </summary> |
| | | /// <param name="disposing">妿åºéæ¾æç®¡èµæºï¼ä¸º trueï¼å¦å为 falseã</param> |
| | | protected override void Dispose(bool disposing) |
| | | { |
| | | if (disposing && (components != null)) |
| | | { |
| | | components.Dispose(); |
| | | } |
| | | base.Dispose(disposing); |
| | | } |
| | | |
| | | #region Windows çªä½è®¾è®¡å¨çæç代ç |
| | | |
| | | /// <summary> |
| | | /// è®¾è®¡å¨æ¯ææéçæ¹æ³ - ä¸è¦ |
| | | /// 使ç¨ä»£ç ç¼è¾å¨ä¿®æ¹æ¤æ¹æ³çå
容ã |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | this.components = new System.ComponentModel.Container(); |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Sc_CJKB)); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | this.Tool = new System.Windows.Forms.ToolStrip(); |
| | | this.tc = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel(); |
| | | this.timer1 = new System.Windows.Forms.Timer(this.components); |
| | | this.timer2 = new System.Windows.Forms.Timer(this.components); |
| | | this.grdPrint = new System.Windows.Forms.DataGridView(); |
| | | this.grdSum = new System.Windows.Forms.DataGridView(); |
| | | this.timer3 = new System.Windows.Forms.Timer(this.components); |
| | | this.grdMain = new System.Windows.Forms.DataGridView(); |
| | | this.Tool.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdPrint)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdSum)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdMain)).BeginInit(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // Tool |
| | | // |
| | | this.Tool.AutoSize = false; |
| | | this.Tool.BackColor = System.Drawing.Color.Black; |
| | | this.Tool.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | this.Tool.ImageScalingSize = new System.Drawing.Size(22, 22); |
| | | this.Tool.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
| | | this.tc, |
| | | this.toolStripButton1, |
| | | this.toolStripButton2, |
| | | this.toolStripSeparator3, |
| | | this.toolStripSeparator9, |
| | | this.toolStripSeparator7, |
| | | this.toolStripLabel1}); |
| | | this.Tool.Location = new System.Drawing.Point(0, 0); |
| | | this.Tool.Name = "Tool"; |
| | | this.Tool.Padding = new System.Windows.Forms.Padding(0); |
| | | this.Tool.Size = new System.Drawing.Size(906, 50); |
| | | this.Tool.Stretch = true; |
| | | this.Tool.TabIndex = 16; |
| | | this.Tool.Text = "toolStrip1"; |
| | | // |
| | | // tc |
| | | // |
| | | this.tc.AutoSize = false; |
| | | this.tc.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; |
| | | this.tc.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.tc.ForeColor = System.Drawing.Color.White; |
| | | this.tc.Image = ((System.Drawing.Image)(resources.GetObject("tc.Image"))); |
| | | this.tc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.tc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.tc.ImageTransparentColor = System.Drawing.Color.White; |
| | | this.tc.Name = "tc"; |
| | | this.tc.Size = new System.Drawing.Size(50, 47); |
| | | this.tc.Text = "<è¿å"; |
| | | this.tc.TextImageRelation = System.Windows.Forms.TextImageRelation.TextAboveImage; |
| | | this.tc.Click += new System.EventHandler(this.tc_Click); |
| | | // |
| | | // toolStripButton1 |
| | | // |
| | | this.toolStripButton1.AutoSize = false; |
| | | this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; |
| | | this.toolStripButton1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.toolStripButton1.ForeColor = System.Drawing.Color.White; |
| | | this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); |
| | | this.toolStripButton1.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.toolStripButton1.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.White; |
| | | this.toolStripButton1.Name = "toolStripButton1"; |
| | | this.toolStripButton1.Size = new System.Drawing.Size(50, 47); |
| | | this.toolStripButton1.Text = "æå"; |
| | | this.toolStripButton1.TextImageRelation = System.Windows.Forms.TextImageRelation.TextAboveImage; |
| | | this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); |
| | | // |
| | | // toolStripButton2 |
| | | // |
| | | this.toolStripButton2.AutoSize = false; |
| | | this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; |
| | | this.toolStripButton2.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.toolStripButton2.ForeColor = System.Drawing.Color.White; |
| | | this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta; |
| | | this.toolStripButton2.Name = "toolStripButton2"; |
| | | this.toolStripButton2.Size = new System.Drawing.Size(36, 47); |
| | | this.toolStripButton2.Text = "设置"; |
| | | this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click); |
| | | // |
| | | // toolStripSeparator3 |
| | | // |
| | | this.toolStripSeparator3.Name = "toolStripSeparator3"; |
| | | this.toolStripSeparator3.Size = new System.Drawing.Size(6, 50); |
| | | // |
| | | // toolStripSeparator9 |
| | | // |
| | | this.toolStripSeparator9.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; |
| | | this.toolStripSeparator9.Name = "toolStripSeparator9"; |
| | | this.toolStripSeparator9.Size = new System.Drawing.Size(6, 50); |
| | | // |
| | | // toolStripSeparator7 |
| | | // |
| | | this.toolStripSeparator7.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; |
| | | this.toolStripSeparator7.Name = "toolStripSeparator7"; |
| | | this.toolStripSeparator7.Size = new System.Drawing.Size(6, 50); |
| | | // |
| | | // toolStripLabel1 |
| | | // |
| | | this.toolStripLabel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; |
| | | this.toolStripLabel1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; |
| | | this.toolStripLabel1.Font = new System.Drawing.Font("Microsoft YaHei UI", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.toolStripLabel1.ForeColor = System.Drawing.Color.White; |
| | | this.toolStripLabel1.Name = "toolStripLabel1"; |
| | | this.toolStripLabel1.Size = new System.Drawing.Size(92, 47); |
| | | this.toolStripLabel1.Text = "车é´çæ¿"; |
| | | this.toolStripLabel1.TextDirection = System.Windows.Forms.ToolStripTextDirection.Horizontal; |
| | | // |
| | | // timer1 |
| | | // |
| | | this.timer1.Enabled = true; |
| | | this.timer1.Tick += new System.EventHandler(this.timer1_Tick); |
| | | // |
| | | // timer2 |
| | | // |
| | | this.timer2.Enabled = true; |
| | | this.timer2.Interval = 20000; |
| | | this.timer2.Tick += new System.EventHandler(this.timer2_Tick); |
| | | // |
| | | // grdPrint |
| | | // |
| | | this.grdPrint.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
| | | this.grdPrint.Location = new System.Drawing.Point(772, 146); |
| | | this.grdPrint.Name = "grdPrint"; |
| | | this.grdPrint.RowTemplate.Height = 23; |
| | | this.grdPrint.Size = new System.Drawing.Size(25, 24); |
| | | this.grdPrint.TabIndex = 8; |
| | | this.grdPrint.Visible = false; |
| | | // |
| | | // grdSum |
| | | // |
| | | this.grdSum.AllowUserToAddRows = false; |
| | | this.grdSum.AllowUserToDeleteRows = false; |
| | | this.grdSum.BackgroundColor = System.Drawing.SystemColors.Control; |
| | | this.grdSum.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
| | | this.grdSum.Dock = System.Windows.Forms.DockStyle.Bottom; |
| | | this.grdSum.Location = new System.Drawing.Point(0, 512); |
| | | this.grdSum.Name = "grdSum"; |
| | | this.grdSum.ReadOnly = true; |
| | | this.grdSum.RowTemplate.Height = 23; |
| | | this.grdSum.ScrollBars = System.Windows.Forms.ScrollBars.None; |
| | | this.grdSum.Size = new System.Drawing.Size(906, 19); |
| | | this.grdSum.TabIndex = 47; |
| | | this.grdSum.Visible = false; |
| | | // |
| | | // timer3 |
| | | // |
| | | this.timer3.Enabled = true; |
| | | this.timer3.Interval = 1800000; |
| | | this.timer3.Tick += new System.EventHandler(this.timer3_Tick); |
| | | // |
| | | // grdMain |
| | | // |
| | | this.grdMain.AllowUserToAddRows = false; |
| | | this.grdMain.AllowUserToDeleteRows = false; |
| | | dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(97)))), ((int)(((byte)(118))))); |
| | | dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(97)))), ((int)(((byte)(118))))); |
| | | dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.White; |
| | | this.grdMain.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
| | | this.grdMain.BackgroundColor = System.Drawing.Color.Black; |
| | | this.grdMain.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
| | | dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
| | | dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(134)))), ((int)(((byte)(202))))); |
| | | dataGridViewCellStyle2.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(134)))), ((int)(((byte)(202))))); |
| | | dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.grdMain.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
| | | this.grdMain.ColumnHeadersHeight = 40; |
| | | this.grdMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
| | | this.grdMain.Dock = System.Windows.Forms.DockStyle.Fill; |
| | | this.grdMain.EnableHeadersVisualStyles = false; |
| | | this.grdMain.Location = new System.Drawing.Point(0, 50); |
| | | this.grdMain.Name = "grdMain"; |
| | | this.grdMain.ReadOnly = true; |
| | | this.grdMain.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
| | | dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
| | | dataGridViewCellStyle3.BackColor = System.Drawing.Color.CornflowerBlue; |
| | | dataGridViewCellStyle3.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText; |
| | | dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
| | | dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
| | | dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.grdMain.RowHeadersDefaultCellStyle = dataGridViewCellStyle3; |
| | | this.grdMain.RowHeadersVisible = false; |
| | | dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
| | | dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(47)))), ((int)(((byte)(47)))), ((int)(((byte)(47))))); |
| | | dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(47)))), ((int)(((byte)(47)))), ((int)(((byte)(47))))); |
| | | dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.White; |
| | | this.grdMain.RowsDefaultCellStyle = dataGridViewCellStyle4; |
| | | this.grdMain.RowTemplate.Height = 23; |
| | | this.grdMain.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; |
| | | this.grdMain.Size = new System.Drawing.Size(906, 462); |
| | | this.grdMain.TabIndex = 48; |
| | | this.grdMain.CellMouseUp += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.grdMain_CellMouseUp); |
| | | this.grdMain.ColumnWidthChanged += new System.Windows.Forms.DataGridViewColumnEventHandler(this.grdMain_ColumnWidthChanged); |
| | | this.grdMain.Sorted += new System.EventHandler(this.grdMain_Sorted); |
| | | this.grdMain.DoubleClick += new System.EventHandler(this.grdMain_DblClick); |
| | | // |
| | | // Sc_CJKB |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(906, 531); |
| | | this.Controls.Add(this.grdMain); |
| | | this.Controls.Add(this.grdSum); |
| | | this.Controls.Add(this.Tool); |
| | | this.Controls.Add(this.grdPrint); |
| | | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
| | | this.Name = "Sc_CJKB"; |
| | | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
| | | this.Text = "åæ®å表"; |
| | | this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
| | | this.Load += new System.EventHandler(this.Sc_CJKB_Load); |
| | | this.Tool.ResumeLayout(false); |
| | | this.Tool.PerformLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdPrint)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdSum)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdMain)).EndInit(); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private System.Windows.Forms.ToolStrip Tool; |
| | | private System.Windows.Forms.ToolStripButton tc; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; |
| | | public System.Windows.Forms.Timer timer1; |
| | | private System.Windows.Forms.Timer timer2; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator9; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator7; |
| | | private System.Windows.Forms.DataGridView grdPrint; |
| | | private System.Windows.Forms.DataGridView grdSum; |
| | | private System.Windows.Forms.Timer timer3; |
| | | private System.Windows.Forms.ToolStripButton toolStripButton1; |
| | | private System.Windows.Forms.ToolStripButton toolStripButton2; |
| | | private System.Windows.Forms.ToolStripLabel toolStripLabel1; |
| | | private System.Windows.Forms.DataGridView grdMain; |
| | | } |
| | | } |
New file |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | | The primary goals of this format is to allow a simple XML format |
| | | that is mostly human readable. The generation and parsing of the |
| | | various data types are done through the TypeConverter classes |
| | | associated with the data types. |
| | | |
| | | Example: |
| | | |
| | | ... ado.net/XML headers & schema ... |
| | | <resheader name="resmimetype">text/microsoft-resx</resheader> |
| | | <resheader name="version">2.0</resheader> |
| | | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
| | | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
| | | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
| | | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
| | | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
| | | <value>[base64 mime encoded serialized .NET Framework object]</value> |
| | | </data> |
| | | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
| | | <comment>This is a comment</comment> |
| | | </data> |
| | | |
| | | There are any number of "resheader" rows that contain simple |
| | | name/value pairs. |
| | | |
| | | Each data row contains a name, and value. The row also contains a |
| | | type or mimetype. Type corresponds to a .NET class that support |
| | | text/value conversion through the TypeConverter architecture. |
| | | Classes that don't support this are serialized and stored with the |
| | | mimetype set. |
| | | |
| | | The mimetype is used for serialized objects, and tells the |
| | | ResXResourceReader how to depersist the object. This is currently not |
| | | extensible. For a given mimetype the value must be set accordingly: |
| | | |
| | | Note - application/x-microsoft.net.object.binary.base64 is the format |
| | | that the ResXResourceWriter will generate, however the reader can |
| | | read any of the formats listed below. |
| | | |
| | | mimetype: application/x-microsoft.net.object.binary.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.bytearray.base64 |
| | | value : The object must be serialized into a byte array |
| | | : using a System.ComponentModel.TypeConverter |
| | | : and then encoded with base64 encoding. |
| | | --> |
| | | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
| | | <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
| | | <xsd:element name="root" msdata:IsDataSet="true"> |
| | | <xsd:complexType> |
| | | <xsd:choice maxOccurs="unbounded"> |
| | | <xsd:element name="metadata"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" use="required" type="xsd:string" /> |
| | | <xsd:attribute name="type" type="xsd:string" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="assembly"> |
| | | <xsd:complexType> |
| | | <xsd:attribute name="alias" type="xsd:string" /> |
| | | <xsd:attribute name="name" type="xsd:string" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="data"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
| | | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="resheader"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:choice> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:schema> |
| | | <resheader name="resmimetype"> |
| | | <value>text/microsoft-resx</value> |
| | | </resheader> |
| | | <resheader name="version"> |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <metadata name="Tool.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>17, 17</value> |
| | | </metadata> |
| | | <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
| | | <data name="tc.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | | YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADCSURBVDhPpZJdCoMwEIRzpxxJ6Ak2z/ZZnysIBXuUHMA7 |
| | | bXeWrGBMYkoHh+gk8xl/XEneP7jXqXIWJkIgHscnT/PEy2vhz7ZhMQ/Dm5l3ObRcB1ACzAKQ6FTcV69G |
| | | rgWTbUl3QFQtFgGpfAAoAVDOi2ZbrwW5hwY4N+P6FmDlkrsBq6zOy3AXIEkhGHMbIMaorgGgI8Cu7CsY |
| | | wOZbAEgDBch/gOveRzgJAKLwH0CGJsDmxU1dAMiSu3R5iZr+oJuic1+SJ5jRbOqnmgAAAABJRU5ErkJg |
| | | gg== |
| | | </value> |
| | | </data> |
| | | <data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | | YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADCSURBVDhPpZJdCoMwEIRzpxxJ6Ak2z/ZZnysIBXuUHMA7 |
| | | bXeWrGBMYkoHh+gk8xl/XEneP7jXqXIWJkIgHscnT/PEy2vhz7ZhMQ/Dm5l3ObRcB1ACzAKQ6FTcV69G |
| | | rgWTbUl3QFQtFgGpfAAoAVDOi2ZbrwW5hwY4N+P6FmDlkrsBq6zOy3AXIEkhGHMbIMaorgGgI8Cu7CsY |
| | | wOZbAEgDBch/gOveRzgJAKLwH0CGJsDmxU1dAMiSu3R5iZr+oJuic1+SJ5jRbOqnmgAAAABJRU5ErkJg |
| | | gg== |
| | | </value> |
| | | </data> |
| | | <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>102, 16</value> |
| | | </metadata> |
| | | <metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>191, 16</value> |
| | | </metadata> |
| | | <metadata name="timer3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>281, 16</value> |
| | | </metadata> |
| | | <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
| | | <value>37</value> |
| | | </metadata> |
| | | </root> |
New file |
| | |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Text; |
| | | using System.Windows.Forms; |
| | | using gregn6Lib; |
| | | using SQLHelper; |
| | | using DBUtility; |
| | | using Pub_Class; |
| | | |
| | | namespace Kanban |
| | | { |
| | | public partial class Sc_QLKB : Form |
| | | { |
| | | public Sc_QLKB() |
| | | { |
| | | InitializeComponent(); |
| | | } |
| | | public DBUtility.frmBillQueryCondition_New frmCondition; |
| | | public string ViewName = "h_v_Sc_QLKB"; |
| | | public string ModCaption = "缺æçæ¿"; |
| | | public const string ModName = "3702"; |
| | | public const string ModRightName = "Sc_QLKB"; |
| | | public const string ModRightNameEdit = ModRightName + "_Edit"; |
| | | public const string ModRightNameCheck = ModRightName + "_Check"; |
| | | public const string ModRightNameClose = ModRightName + "_Close"; |
| | | public const string ModRightNameDelete = ModRightName + "_Delete"; |
| | | Pub_Class.ClsGridListSum oSumGrid = new Pub_Class.ClsGridListSum(); |
| | | public string sDeptID = "0"; |
| | | DataSet DSet; |
| | | |
| | | int FY = 29; |
| | | // |
| | | private void initGrid() |
| | | { |
| | | //DBUtility.Xt_BaseBillFun.initGridList(grdMain, this.Name); |
| | | //åæ é¢ |
| | | //grdMain.ColumnHeadersDefaultCellStyle.BackColor = Color.FromArgb(60, 134, 202); |
| | | //grdMain.ColumnHeadersDefaultCellStyle.ForeColor = Color.White; |
| | | //grdMain.ColumnHeadersDefaultCellStyle.SelectionBackColor = Color.FromArgb(60, 134, 202); |
| | | //grdMain.ColumnHeadersDefaultCellStyle.SelectionForeColor = Color.White; |
| | | //grdMain.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; |
| | | //grdMain.ColumnHeadersHeight = 40; |
| | | //grdMain.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
| | | ////奿°è¡ |
| | | //grdMain.AlternatingRowsDefaultCellStyle.BackColor = Color.FromArgb(104, 97, 118); |
| | | //grdMain.AlternatingRowsDefaultCellStyle.ForeColor = Color.White; |
| | | //grdMain.AlternatingRowsDefaultCellStyle.SelectionBackColor = Color.FromArgb(104, 97, 118); |
| | | //grdMain.AlternatingRowsDefaultCellStyle.SelectionForeColor = Color.White; |
| | | ////ç½æ ¼èæ¯è² |
| | | //grdMain.BackgroundColor = Color.FromArgb(104, 97, 118); |
| | | ////åæ é¢è¾¹æ¡æ ·å¼ |
| | | //grdMain.ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.None; ; |
| | | ////æ 颿 ·å¼æ¯å¦ä½¿ç¨ç¨æ·å½å主é¢çæ ·å¼ |
| | | //grdMain.EnableHeadersVisualStyles = false; |
| | | ////éèè¡æ é¢ |
| | | //grdMain.RowHeadersVisible = false; |
| | | ////åå
æ ¼ |
| | | //grdMain.RowsDefaultCellStyle.BackColor = Color.FromArgb(47, 47, 47); |
| | | //grdMain.RowsDefaultCellStyle.ForeColor = Color.White; |
| | | //grdMain.RowsDefaultCellStyle.SelectionBackColor = Color.FromArgb(47, 47, 47); |
| | | //grdMain.RowsDefaultCellStyle.SelectionForeColor = Color.White; |
| | | //grdMain.RowsDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; |
| | | //-------------------- |
| | | DBUtility.Xt_BaseBillFun.initKanBan(this.Name, grdMain, Tool, toolStripLabel1, null, ref FY, timer2, timer3); |
| | | } |
| | | // |
| | | |
| | | private void Display() |
| | | { |
| | | try |
| | | { |
| | | //ClsCN SubCn = new ClsCN(); |
| | | //string sSql = ""; |
| | | //string sWhere = ""; |
| | | ////è¿æ»¤æ¡ä»¶ |
| | | ////if (frmCondition.SqlStr.Trim().Length == 0) |
| | | //// return; |
| | | ////sSql = frmCondition.SqlStr + sWhere + " order by HStatus,HDate "; |
| | | //sSql = "exec h_p_QLKB "; |
| | | //// |
| | | //DSet = SubCn.RunProcReturn(sSql, ViewName, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | ////çæé¦è¡æ é¢ |
| | | //if (DSet == null) |
| | | //{ |
| | | // //MessageBox.Show("没æè¿åä»»ä½ç»æ,请å¨è¿æ»¤æ¡ä¸ç¹å»ãæ¢å¤ãæé®,å°è¯å次æ¥è¯¢ï¼" + DBUtility.ClsPub.sExeReturnInfo); |
| | | // return; |
| | | //} |
| | | ////éæ¾å»ç» |
| | | //DBUtility.Xt_BaseBillFun.CancelFrozenCol(grdMain); |
| | | //// |
| | | //grdMain.DataSource = DSet.Tables[0].DefaultView; |
| | | //// |
| | | |
| | | ////-----------é¢è¦ç¶æ |
| | | ////å¼å·¥æ¶é´å°äºå½å¤©æ¶é´ï¼ä½æ¯ä»»å¡åç¶æè¿æ¯ å¾
ç产ï¼ç³»ç»èªå¨é»è²è¦ç¤ºï¼ |
| | | ////å®å·¥æ¶é´å°äºå½å¤©æ¶é´ï¼ä½æ¯ä»»å¡åè¿æ¯å¾
ç产æè
卿§è¡çï¼ç³»ç»èªå¨çº¢è²è¦ç¤ºï¼ |
| | | ////int HBDateCol = Fun_GetCol("å¼å·¥æ¶é´"); |
| | | ////int HEDateCol = Fun_GetCol("å®å·¥æ¶é´"); |
| | | ////int HStatusCol = Fun_GetCol("çäº§ç¶æ"); |
| | | ////DateTime oNow = DateTime.Today.Date; |
| | | ////for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | ////{ |
| | | //// if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HBDateCol].Value) < oNow && DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HStatusCol].Value) == "å¾
ç产") |
| | | //// { |
| | | //// grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Yellow; |
| | | //// } |
| | | //// if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow && DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HStatusCol].Value) == "å¾
ç产") |
| | | //// { |
| | | //// grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red; |
| | | //// } |
| | | ////} |
| | | |
| | | ////设置å计å |
| | | //string sTotalCol = ""; |
| | | //sTotalCol = DBUtility.Gy_BaseFun.GetTotalCols(DSet); |
| | | //string[] sT; |
| | | //sT = sTotalCol.Split(Convert.ToChar(",")); |
| | | //oSumGrid.BuildTotalCols(sT); |
| | | //// |
| | | ////å»ç» |
| | | //int FrCol = 10; |
| | | //string s = "æ¯"; |
| | | //DBUtility.Xt_BaseBillFun.DisplayGrid(grdMain, this.Name, s, FrCol); |
| | | ////ç»çº¿ |
| | | ////GraphLine(); |
| | | |
| | | ////Total(); |
| | | |
| | | ////for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | ////{ |
| | | //// if (i % 2 == 0) |
| | | //// { |
| | | //// grdMain.Rows[i].DefaultCellStyle.BackColor = Color.SteelBlue; |
| | | //// grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.White; |
| | | //// } |
| | | //// else |
| | | //// { |
| | | //// grdMain.Rows[i].DefaultCellStyle.BackColor = Color.SlateGray; |
| | | //// grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.White; |
| | | //// } |
| | | ////} |
| | | //// |
| | | /// |
| | | ClsCN clsCN = new ClsCN(); |
| | | ClsIni clsIni = new ClsIni(); |
| | | string text = ClsIni.ReadIni("Dept", "DeptID", Pub_Class.ClsPub.AppPath + "\\HXErp.ini"); |
| | | this.sDeptID = text; |
| | | string procName = "exec h_p_QLKB " + this.sDeptID; |
| | | this.DSet = clsCN.RunProcReturn(procName, this.ViewName, ref Pub_Class.ClsPub.sExeReturnInfo); |
| | | bool flag = this.DSet == null; |
| | | if (!flag) |
| | | { |
| | | Xt_BaseBillFun.CancelFrozenCol(this.grdMain); |
| | | this.grdMain.DataSource = this.DSet.Tables[0].DefaultView; |
| | | string totalCols = Gy_BaseFun.GetTotalCols(this.DSet); |
| | | string[] cols = totalCols.Split(new char[] |
| | | { |
| | | Convert.ToChar(",") |
| | | }); |
| | | this.oSumGrid.BuildTotalCols(cols); |
| | | int frCol = 10; |
| | | string s = "æ¯"; |
| | | Xt_BaseBillFun.DisplayGrid(this.grdMain, base.Name, s, frCol); |
| | | } |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | // |
| | | private void timer1_Tick(object sender, EventArgs e) |
| | | { |
| | | timer1.Enabled=false; |
| | | initGrid(); |
| | | Display(); |
| | | } |
| | | |
| | | private void tc_Click(object sender, EventArgs e) |
| | | { |
| | | //ä¿åå宽 |
| | | DBUtility.Xt_BaseBillFun.SaveGrid(grdMain, this.Name); |
| | | this.Close(); |
| | | } |
| | | |
| | | private void sx_Click(object sender, EventArgs e) |
| | | { |
| | | timer1.Enabled = true; |
| | | } |
| | | |
| | | private void dj_Click(object sender, EventArgs e) |
| | | { |
| | | Sub_ShowBill(); |
| | | } |
| | | //æ¾ç¤ºåæ® |
| | | private void Sub_ShowBill() |
| | | { |
| | | |
| | | } |
| | | // |
| | | private Int32 Fun_GetCol(string sCol) |
| | | { |
| | | return DBUtility.Xt_BaseBillFun.Fun_GetCol(sCol, grdMain); |
| | | } |
| | | // |
| | | private void Sc_QLKB_Load(object sender, EventArgs e) |
| | | { |
| | | // |
| | | frmCondition = new frmBillQueryCondition_New(); |
| | | this.Text = ModCaption; |
| | | //lblCaption.Text = ModCaption; |
| | | oSumGrid.ogrdMain = grdMain; //åå§å new |
| | | oSumGrid.oGridsum = grdSum; |
| | | initGrid(); |
| | | |
| | | ClsIni oIni = new ClsIni(); |
| | | string sID = ClsIni.ReadIni("Dept", "DeptID", Pub_Class.ClsPub.AppPath + @"\" + "HXErp_SY.ini"); |
| | | if (sID == "æ²¡ææ¾å°ï¼") |
| | | { |
| | | sDeptID = "0"; |
| | | } |
| | | else |
| | | { |
| | | sDeptID = sID; |
| | | } |
| | | } |
| | | |
| | | private void grdMain_DblClick(object sender, EventArgs e) |
| | | { |
| | | //Sc_WorkBillProcReportKB o = new Sc_WorkBillProcReportKB(); |
| | | //if(grdMain.CurrentRow==null) |
| | | // return; |
| | | //o.sICMOInterID = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentCell.RowIndex].Cells[Fun_GetCol("HInterID")].Value); |
| | | //o.sDeptID = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentCell.RowIndex].Cells[Fun_GetCol("HDeptID")].Value); |
| | | //o.ShowDialog(); |
| | | } |
| | | |
| | | private void cx_Click(object sender, EventArgs e) |
| | | { |
| | | frmCondition = new frmBillQueryCondition_New(); |
| | | SetCondition(frmCondition, ViewName, this.Name); |
| | | frmCondition.ShowDialog(); |
| | | if (frmCondition.Tag.ToString() == "OK") |
| | | { |
| | | Display(); |
| | | } |
| | | } |
| | | |
| | | public void SetCondition(frmBillQueryCondition_New frmCondition, string ViewName, string Name) |
| | | { |
| | | frmCondition.Tag = ""; |
| | | frmCondition.ViewName = ViewName; |
| | | frmCondition.ModName = Name; |
| | | } |
| | | |
| | | private void xz_Click(object sender, EventArgs e) |
| | | { |
| | | // |
| | | } |
| | | |
| | | private void sc_Click(object sender, EventArgs e) |
| | | { |
| | | Sub_DeleteBill(); |
| | | } |
| | | //å é¤ |
| | | private void Sub_DeleteBill() |
| | | { |
| | | |
| | | } |
| | | |
| | | private void timer2_Tick(object sender, EventArgs e) |
| | | { |
| | | //timer2.Enabled = false; |
| | | //frmCondition = new frmBillQueryCondition_New(); |
| | | //SetCondition(frmCondition, ViewName, this.Name); |
| | | //frmCondition.ShowDialog(); |
| | | //if (frmCondition.Tag.ToString() == "OK") |
| | | //{ |
| | | //timer1.Enabled = true; |
| | | //} |
| | | |
| | | if (DSet != null && DSet.Tables[0].Rows.Count > FY) |
| | | { |
| | | for (int y = 0; y < FY; y++) |
| | | { |
| | | DataRow newRow = DSet.Tables[0].NewRow(); |
| | | //ç¨ç¸åºå¼å¡«åæ°æ®è¡ |
| | | for (int m = 0; m < DSet.Tables[0].Columns.Count; m++) |
| | | { |
| | | newRow[m] = DSet.Tables[0].Rows[0][m]; |
| | | } |
| | | //å¡«å宿¯ï¼å°æ°æ®è¡æ·»å å°æ°æ®é |
| | | DSet.Tables[0].Rows.Add(newRow); |
| | | |
| | | DSet.Tables[0].Rows.Remove(DSet.Tables[0].Rows[0]); |
| | | } |
| | | |
| | | grdMain.DataSource = null; |
| | | grdMain.DataSource = DSet.Tables[0].DefaultView; |
| | | |
| | | |
| | | ////-----------é¢è¦ç¶æ å°äºçäº æ¾ç¤º 红è²ï¼ å°äº7 æ©è²ï¼å°äºçäº14 é»è² |
| | | //int HYJDateCol = Fun_GetCol("é¢è¦ç¶æï¼å¤©ï¼"); |
| | | //int HSumUnDownQtyCol = Fun_GetCol("æ»æªä¸éè´é"); |
| | | //for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | //{ |
| | | // if (DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HYJDateCol].Value) <= 0) |
| | | // { |
| | | // grdMain.Rows[i].Cells[HYJDateCol].Style.BackColor = Color.Red; |
| | | // } |
| | | // else if (DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HYJDateCol].Value) > 0 && DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HYJDateCol].Value) < 7) |
| | | // { |
| | | // grdMain.Rows[i].Cells[HYJDateCol].Style.BackColor = Color.Orange; |
| | | // } |
| | | // else if (DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HYJDateCol].Value) >= 7 && DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HYJDateCol].Value) <= 14) |
| | | // { |
| | | // grdMain.Rows[i].Cells[HYJDateCol].Style.BackColor = Color.Yellow; |
| | | // grdMain.Rows[i].Cells[HYJDateCol].Style.ForeColor = Color.Black; |
| | | // } |
| | | // //================= //------------æªä¸å 大äº0 æ¾ç¤ºçº¢è² |
| | | // if (DBUtility.ClsPub.isDoule(grdMain.Rows[i].Cells[HSumUnDownQtyCol].Value) > 0) |
| | | // { |
| | | // grdMain.Rows[i].Cells[HSumUnDownQtyCol].Style.BackColor = Color.Red; |
| | | // } |
| | | //} |
| | | |
| | | DBUtility.Xt_BaseBillFun.DisplayGrid(grdMain, this.Name, "", 0); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | private void bclk_Click(object sender, EventArgs e) |
| | | { |
| | | //ä¿åå宽 |
| | | DBUtility.Xt_BaseBillFun.SaveGrid(grdMain, this.Name); |
| | | } |
| | | |
| | | private void mrlk_Click(object sender, EventArgs e) |
| | | { |
| | | DBUtility.Xt_BaseBillFun.DefaultGridView(grdMain, this.Name); |
| | | } |
| | | // |
| | | private void GraphLine() |
| | | { |
| | | int MainIDCol = Fun_GetCol("hmainid"); |
| | | int SubIDCol = Fun_GetCol("hsubid"); |
| | | string s = frmCondition.cmbHComplete.Text; |
| | | long n=0; |
| | | //DBUtility.Xt_BaseBillFun.GraphLine(grdMain, MainIDCol, SubIDCol, s,ref n); |
| | | //æ¾ç¤º |
| | | //lbldj.Text = "æ¥è¯¢åº " + n.ToString() + " å¼ åæ®"; |
| | | //lbljl.Text = "å
±æ " + grdMain.RowCount.ToString() + " æ¡è®°å½"; |
| | | } |
| | | //å®¡æ ¸ |
| | | private void sh_Click(object sender, EventArgs e) |
| | | { |
| | | this.Sub_CheckBill(); |
| | | } |
| | | |
| | | //å®¡æ ¸åæ® |
| | | private void Sub_CheckBill() |
| | | { |
| | | |
| | | } |
| | | //å审忮 |
| | | private void Sub_AbandonCheck() |
| | | { |
| | | |
| | | } |
| | | //åå®¡æ ¸ |
| | | private void qsh_Click(object sender, EventArgs e) |
| | | { |
| | | Sub_AbandonCheck(); |
| | | } |
| | | |
| | | private void GraphicsGrid() |
| | | { |
| | | DBUtility.Xt_BaseBillFun.GraphicsGrid(grdMain); |
| | | } |
| | | |
| | | #region //æå°è®¾ç½® |
| | | |
| | | GridppReport Report; |
| | | //é¢è§ |
| | | private void yl_Click(object sender, EventArgs e) |
| | | { |
| | | //éæ©æå°æ¨¡æ¿ |
| | | BLL.Gy_OpenTmp oFrm = new BLL.Gy_OpenTmp(); |
| | | oFrm.sBillName = ModName; |
| | | oFrm.sBillModel = ModCaption; |
| | | oFrm.ShowDialog(); |
| | | if (oFrm.OKTag == Pub_Class.ClsPub.Enum_OKTag.OKTag_OK) |
| | | { |
| | | // |
| | | Sub_SetReport(oFrm.sOpenTmp); |
| | | Report.PrintPreview(true); |
| | | } |
| | | } |
| | | |
| | | private void Sub_SetReport(string sOpenTmp) |
| | | { |
| | | //å¤æè¡æ° |
| | | // |
| | | Report = new GridppReport(); |
| | | Report.LoadFromFile(DBUtility.ClsPub.AppPath + @"\" + sOpenTmp + ".grf"); //here . |
| | | Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(ReportFetchRecordByDataTable); |
| | | } |
| | | |
| | | private void ReportFetchRecordByDataTable() |
| | | { |
| | | try |
| | | { |
| | | BLL.Utility.FillRecordToReport(Report, grdMain, grdPrint, Fun_GetCol("HMaterID")); |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | MessageBox.Show("æå°å¤±è´¥!ï¼" + e.Message); |
| | | } |
| | | } |
| | | |
| | | #endregion |
| | | // |
| | | private void grdMain_Paint(object sender, PaintEventArgs e) |
| | | { |
| | | GraphicsGrid(); |
| | | } |
| | | |
| | | //å计 new |
| | | private void Total() |
| | | { |
| | | if (grdMain.Rows.Count > 0 && grdMain.ColumnCount>0) |
| | | { |
| | | oSumGrid.SetGridsum(); |
| | | oSumGrid.Total(); |
| | | } |
| | | } |
| | | //å计 new |
| | | private void grdMain_ColumnWidthChanged(object sender, DataGridViewColumnEventArgs e) |
| | | { |
| | | Total(); |
| | | } |
| | | //å计 new |
| | | private void grdMain_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e) |
| | | { |
| | | Total(); |
| | | } |
| | | //å¼åºEXCEL |
| | | private void dc_Click(object sender, EventArgs e) |
| | | { |
| | | DBUtility.Gy_BaseFun.DataToExcel(this.Text, grdMain); |
| | | } |
| | | int HQty = 0; |
| | | private void timer3_Tick(object sender, EventArgs e) |
| | | { |
| | | if (HQty < 10) |
| | | { |
| | | HQty = HQty + 1; |
| | | } |
| | | else |
| | | { |
| | | HQty = 0; |
| | | timer1.Enabled = true; |
| | | } |
| | | } |
| | | |
| | | private void toolStripButton1_Click(object sender, EventArgs e) |
| | | { |
| | | if (toolStripButton1.Text == "æå") |
| | | { |
| | | toolStripButton1.Text = "è¿è¡"; |
| | | timer2.Enabled = false; |
| | | } |
| | | else |
| | | { |
| | | toolStripButton1.Text = "æå"; |
| | | timer2.Enabled = true; |
| | | } |
| | | } |
| | | |
| | | private void txtHMaterID_KeyDown(object sender, KeyEventArgs e) |
| | | { |
| | | if (e.KeyCode == Keys.Enter) |
| | | { |
| | | timer1.Enabled = true; |
| | | } |
| | | } |
| | | |
| | | private void toolStripButton2_Click(object sender, EventArgs e) |
| | | { |
| | | //Kanban_BaseSet oSZ = new Kanban_BaseSet(); |
| | | //oSZ.HName = this.Name; |
| | | //oSZ.ShowDialog(); |
| | | timer1.Enabled = true; |
| | | |
| | | |
| | | Kanban_BaseSet oSZ = new Kanban_BaseSet(); |
| | | oSZ.HName = this.Name; |
| | | oSZ.ShowDialog(); |
| | | timer1.Enabled = true; |
| | | } |
| | | |
| | | private void grdMain_Sorted(object sender, EventArgs e) |
| | | { |
| | | //-----------é¢è¦ç¶æ |
| | | //å¼å·¥æ¶é´å°äºå½å¤©æ¶é´ï¼ä½æ¯ä»»å¡åç¶æè¿æ¯ å¾
ç产ï¼ç³»ç»èªå¨é»è²è¦ç¤ºï¼ |
| | | //å®å·¥æ¶é´å°äºå½å¤©æ¶é´ï¼ä½æ¯ä»»å¡åè¿æ¯å¾
ç产æè
卿§è¡çï¼ç³»ç»èªå¨çº¢è²è¦ç¤ºï¼ |
| | | int HBDateCol = Fun_GetCol("å¼å·¥æ¶é´"); |
| | | int HEDateCol = Fun_GetCol("å®å·¥æ¶é´"); |
| | | int HStatusCol = Fun_GetCol("çäº§ç¶æ"); |
| | | DateTime oNow = DateTime.Today.Date; |
| | | for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | { |
| | | if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HBDateCol].Value) < oNow && DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HStatusCol].Value) == "å¾
ç产") |
| | | { |
| | | grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Yellow; |
| | | } |
| | | if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow && DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HStatusCol].Value) == "å¾
ç产") |
| | | { |
| | | grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red; |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
New file |
| | |
| | | namespace Kanban |
| | | { |
| | | partial class Sc_QLKB |
| | | { |
| | | /// <summary> |
| | | /// å¿
éç设计å¨åéã |
| | | /// </summary> |
| | | private System.ComponentModel.IContainer components = null; |
| | | |
| | | /// <summary> |
| | | /// æ¸
çæææ£å¨ä½¿ç¨çèµæºã |
| | | /// </summary> |
| | | /// <param name="disposing">妿åºéæ¾æç®¡èµæºï¼ä¸º trueï¼å¦å为 falseã</param> |
| | | protected override void Dispose(bool disposing) |
| | | { |
| | | if (disposing && (components != null)) |
| | | { |
| | | components.Dispose(); |
| | | } |
| | | base.Dispose(disposing); |
| | | } |
| | | |
| | | #region Windows çªä½è®¾è®¡å¨çæç代ç |
| | | |
| | | /// <summary> |
| | | /// è®¾è®¡å¨æ¯ææéçæ¹æ³ - ä¸è¦ |
| | | /// 使ç¨ä»£ç ç¼è¾å¨ä¿®æ¹æ¤æ¹æ³çå
容ã |
| | | /// </summary> |
| | | private void InitializeComponent() |
| | | { |
| | | this.components = new System.ComponentModel.Container(); |
| | | System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Sc_QLKB)); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); |
| | | this.Tool = new System.Windows.Forms.ToolStrip(); |
| | | this.tc = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripButton1 = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripButton2 = new System.Windows.Forms.ToolStripButton(); |
| | | this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator(); |
| | | this.toolStripLabel1 = new System.Windows.Forms.ToolStripLabel(); |
| | | this.timer1 = new System.Windows.Forms.Timer(this.components); |
| | | this.timer2 = new System.Windows.Forms.Timer(this.components); |
| | | this.grdPrint = new System.Windows.Forms.DataGridView(); |
| | | this.grdSum = new System.Windows.Forms.DataGridView(); |
| | | this.timer3 = new System.Windows.Forms.Timer(this.components); |
| | | this.grdMain = new System.Windows.Forms.DataGridView(); |
| | | this.Tool.SuspendLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdPrint)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdSum)).BeginInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdMain)).BeginInit(); |
| | | this.SuspendLayout(); |
| | | // |
| | | // Tool |
| | | // |
| | | this.Tool.AutoSize = false; |
| | | this.Tool.BackColor = System.Drawing.Color.Black; |
| | | this.Tool.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; |
| | | this.Tool.ImageScalingSize = new System.Drawing.Size(22, 22); |
| | | this.Tool.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { |
| | | this.tc, |
| | | this.toolStripButton1, |
| | | this.toolStripButton2, |
| | | this.toolStripSeparator3, |
| | | this.toolStripSeparator9, |
| | | this.toolStripSeparator7, |
| | | this.toolStripLabel1}); |
| | | this.Tool.Location = new System.Drawing.Point(0, 0); |
| | | this.Tool.Name = "Tool"; |
| | | this.Tool.Padding = new System.Windows.Forms.Padding(0); |
| | | this.Tool.Size = new System.Drawing.Size(906, 50); |
| | | this.Tool.Stretch = true; |
| | | this.Tool.TabIndex = 16; |
| | | this.Tool.Text = "toolStrip1"; |
| | | // |
| | | // tc |
| | | // |
| | | this.tc.AutoSize = false; |
| | | this.tc.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; |
| | | this.tc.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.tc.ForeColor = System.Drawing.Color.White; |
| | | this.tc.Image = ((System.Drawing.Image)(resources.GetObject("tc.Image"))); |
| | | this.tc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.tc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.tc.ImageTransparentColor = System.Drawing.Color.White; |
| | | this.tc.Name = "tc"; |
| | | this.tc.Size = new System.Drawing.Size(50, 47); |
| | | this.tc.Text = "<è¿å"; |
| | | this.tc.TextImageRelation = System.Windows.Forms.TextImageRelation.TextAboveImage; |
| | | this.tc.Click += new System.EventHandler(this.tc_Click); |
| | | // |
| | | // toolStripButton1 |
| | | // |
| | | this.toolStripButton1.AutoSize = false; |
| | | this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; |
| | | this.toolStripButton1.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.toolStripButton1.ForeColor = System.Drawing.Color.White; |
| | | this.toolStripButton1.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton1.Image"))); |
| | | this.toolStripButton1.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; |
| | | this.toolStripButton1.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; |
| | | this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.White; |
| | | this.toolStripButton1.Name = "toolStripButton1"; |
| | | this.toolStripButton1.Size = new System.Drawing.Size(50, 47); |
| | | this.toolStripButton1.Text = "æå"; |
| | | this.toolStripButton1.TextImageRelation = System.Windows.Forms.TextImageRelation.TextAboveImage; |
| | | this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click); |
| | | // |
| | | // toolStripButton2 |
| | | // |
| | | this.toolStripButton2.AutoSize = false; |
| | | this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; |
| | | this.toolStripButton2.Font = new System.Drawing.Font("Microsoft YaHei UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.toolStripButton2.ForeColor = System.Drawing.Color.White; |
| | | this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta; |
| | | this.toolStripButton2.Name = "toolStripButton2"; |
| | | this.toolStripButton2.Size = new System.Drawing.Size(36, 47); |
| | | this.toolStripButton2.Text = "设置"; |
| | | this.toolStripButton2.Click += new System.EventHandler(this.toolStripButton2_Click); |
| | | // |
| | | // toolStripSeparator3 |
| | | // |
| | | this.toolStripSeparator3.Name = "toolStripSeparator3"; |
| | | this.toolStripSeparator3.Size = new System.Drawing.Size(6, 50); |
| | | // |
| | | // toolStripSeparator9 |
| | | // |
| | | this.toolStripSeparator9.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; |
| | | this.toolStripSeparator9.Name = "toolStripSeparator9"; |
| | | this.toolStripSeparator9.Size = new System.Drawing.Size(6, 50); |
| | | // |
| | | // toolStripSeparator7 |
| | | // |
| | | this.toolStripSeparator7.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; |
| | | this.toolStripSeparator7.Name = "toolStripSeparator7"; |
| | | this.toolStripSeparator7.Size = new System.Drawing.Size(6, 50); |
| | | // |
| | | // toolStripLabel1 |
| | | // |
| | | this.toolStripLabel1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; |
| | | this.toolStripLabel1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; |
| | | this.toolStripLabel1.Font = new System.Drawing.Font("Microsoft YaHei UI", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.toolStripLabel1.ForeColor = System.Drawing.Color.White; |
| | | this.toolStripLabel1.Name = "toolStripLabel1"; |
| | | this.toolStripLabel1.Size = new System.Drawing.Size(92, 47); |
| | | this.toolStripLabel1.Text = "缺æçæ¿"; |
| | | this.toolStripLabel1.TextDirection = System.Windows.Forms.ToolStripTextDirection.Horizontal; |
| | | // |
| | | // timer1 |
| | | // |
| | | this.timer1.Enabled = true; |
| | | this.timer1.Tick += new System.EventHandler(this.timer1_Tick); |
| | | // |
| | | // timer2 |
| | | // |
| | | this.timer2.Enabled = true; |
| | | this.timer2.Interval = 20000; |
| | | this.timer2.Tick += new System.EventHandler(this.timer2_Tick); |
| | | // |
| | | // grdPrint |
| | | // |
| | | this.grdPrint.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
| | | this.grdPrint.Location = new System.Drawing.Point(772, 146); |
| | | this.grdPrint.Name = "grdPrint"; |
| | | this.grdPrint.RowTemplate.Height = 23; |
| | | this.grdPrint.Size = new System.Drawing.Size(25, 24); |
| | | this.grdPrint.TabIndex = 8; |
| | | this.grdPrint.Visible = false; |
| | | // |
| | | // grdSum |
| | | // |
| | | this.grdSum.AllowUserToAddRows = false; |
| | | this.grdSum.AllowUserToDeleteRows = false; |
| | | this.grdSum.BackgroundColor = System.Drawing.SystemColors.Control; |
| | | this.grdSum.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; |
| | | this.grdSum.Dock = System.Windows.Forms.DockStyle.Bottom; |
| | | this.grdSum.Location = new System.Drawing.Point(0, 512); |
| | | this.grdSum.Name = "grdSum"; |
| | | this.grdSum.ReadOnly = true; |
| | | this.grdSum.RowTemplate.Height = 23; |
| | | this.grdSum.ScrollBars = System.Windows.Forms.ScrollBars.None; |
| | | this.grdSum.Size = new System.Drawing.Size(906, 19); |
| | | this.grdSum.TabIndex = 47; |
| | | this.grdSum.Visible = false; |
| | | // |
| | | // timer3 |
| | | // |
| | | this.timer3.Enabled = true; |
| | | this.timer3.Interval = 1800000; |
| | | this.timer3.Tick += new System.EventHandler(this.timer3_Tick); |
| | | // |
| | | // grdMain |
| | | // |
| | | this.grdMain.AllowUserToAddRows = false; |
| | | this.grdMain.AllowUserToDeleteRows = false; |
| | | dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(97)))), ((int)(((byte)(118))))); |
| | | dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle1.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(104)))), ((int)(((byte)(97)))), ((int)(((byte)(118))))); |
| | | dataGridViewCellStyle1.SelectionForeColor = System.Drawing.Color.White; |
| | | this.grdMain.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; |
| | | this.grdMain.BackgroundColor = System.Drawing.Color.Black; |
| | | this.grdMain.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
| | | dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
| | | dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(134)))), ((int)(((byte)(202))))); |
| | | dataGridViewCellStyle2.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle2.ForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle2.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(60)))), ((int)(((byte)(134)))), ((int)(((byte)(202))))); |
| | | dataGridViewCellStyle2.SelectionForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.grdMain.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
| | | this.grdMain.ColumnHeadersHeight = 40; |
| | | this.grdMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
| | | this.grdMain.Dock = System.Windows.Forms.DockStyle.Fill; |
| | | this.grdMain.EnableHeadersVisualStyles = false; |
| | | this.grdMain.Location = new System.Drawing.Point(0, 50); |
| | | this.grdMain.Name = "grdMain"; |
| | | this.grdMain.ReadOnly = true; |
| | | this.grdMain.RowHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.None; |
| | | dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
| | | dataGridViewCellStyle3.BackColor = System.Drawing.Color.CornflowerBlue; |
| | | dataGridViewCellStyle3.Font = new System.Drawing.Font("å®ä½", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText; |
| | | dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
| | | dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
| | | dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; |
| | | this.grdMain.RowHeadersDefaultCellStyle = dataGridViewCellStyle3; |
| | | this.grdMain.RowHeadersVisible = false; |
| | | dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
| | | dataGridViewCellStyle4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(47)))), ((int)(((byte)(47)))), ((int)(((byte)(47))))); |
| | | dataGridViewCellStyle4.ForeColor = System.Drawing.Color.White; |
| | | dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(47)))), ((int)(((byte)(47)))), ((int)(((byte)(47))))); |
| | | dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.White; |
| | | this.grdMain.RowsDefaultCellStyle = dataGridViewCellStyle4; |
| | | this.grdMain.RowTemplate.Height = 23; |
| | | this.grdMain.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; |
| | | this.grdMain.Size = new System.Drawing.Size(906, 462); |
| | | this.grdMain.TabIndex = 48; |
| | | this.grdMain.CellMouseUp += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.grdMain_CellMouseUp); |
| | | this.grdMain.ColumnWidthChanged += new System.Windows.Forms.DataGridViewColumnEventHandler(this.grdMain_ColumnWidthChanged); |
| | | this.grdMain.Sorted += new System.EventHandler(this.grdMain_Sorted); |
| | | this.grdMain.DoubleClick += new System.EventHandler(this.grdMain_DblClick); |
| | | // |
| | | // Sc_QLKB |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(906, 531); |
| | | this.Controls.Add(this.grdMain); |
| | | this.Controls.Add(this.grdSum); |
| | | this.Controls.Add(this.Tool); |
| | | this.Controls.Add(this.grdPrint); |
| | | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; |
| | | this.Name = "Sc_QLKB"; |
| | | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
| | | this.Text = "åæ®å表"; |
| | | this.WindowState = System.Windows.Forms.FormWindowState.Maximized; |
| | | this.Load += new System.EventHandler(this.Sc_QLKB_Load); |
| | | this.Tool.ResumeLayout(false); |
| | | this.Tool.PerformLayout(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdPrint)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdSum)).EndInit(); |
| | | ((System.ComponentModel.ISupportInitialize)(this.grdMain)).EndInit(); |
| | | this.ResumeLayout(false); |
| | | |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | private System.Windows.Forms.ToolStrip Tool; |
| | | private System.Windows.Forms.ToolStripButton tc; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; |
| | | public System.Windows.Forms.Timer timer1; |
| | | private System.Windows.Forms.Timer timer2; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator9; |
| | | private System.Windows.Forms.ToolStripSeparator toolStripSeparator7; |
| | | private System.Windows.Forms.DataGridView grdPrint; |
| | | private System.Windows.Forms.DataGridView grdSum; |
| | | private System.Windows.Forms.Timer timer3; |
| | | private System.Windows.Forms.ToolStripButton toolStripButton1; |
| | | private System.Windows.Forms.ToolStripButton toolStripButton2; |
| | | private System.Windows.Forms.ToolStripLabel toolStripLabel1; |
| | | private System.Windows.Forms.DataGridView grdMain; |
| | | } |
| | | } |
New file |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <root> |
| | | <!-- |
| | | Microsoft ResX Schema |
| | | |
| | | Version 2.0 |
| | | |
| | | The primary goals of this format is to allow a simple XML format |
| | | that is mostly human readable. The generation and parsing of the |
| | | various data types are done through the TypeConverter classes |
| | | associated with the data types. |
| | | |
| | | Example: |
| | | |
| | | ... ado.net/XML headers & schema ... |
| | | <resheader name="resmimetype">text/microsoft-resx</resheader> |
| | | <resheader name="version">2.0</resheader> |
| | | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> |
| | | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> |
| | | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> |
| | | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> |
| | | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> |
| | | <value>[base64 mime encoded serialized .NET Framework object]</value> |
| | | </data> |
| | | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> |
| | | <comment>This is a comment</comment> |
| | | </data> |
| | | |
| | | There are any number of "resheader" rows that contain simple |
| | | name/value pairs. |
| | | |
| | | Each data row contains a name, and value. The row also contains a |
| | | type or mimetype. Type corresponds to a .NET class that support |
| | | text/value conversion through the TypeConverter architecture. |
| | | Classes that don't support this are serialized and stored with the |
| | | mimetype set. |
| | | |
| | | The mimetype is used for serialized objects, and tells the |
| | | ResXResourceReader how to depersist the object. This is currently not |
| | | extensible. For a given mimetype the value must be set accordingly: |
| | | |
| | | Note - application/x-microsoft.net.object.binary.base64 is the format |
| | | that the ResXResourceWriter will generate, however the reader can |
| | | read any of the formats listed below. |
| | | |
| | | mimetype: application/x-microsoft.net.object.binary.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.soap.base64 |
| | | value : The object must be serialized with |
| | | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter |
| | | : and then encoded with base64 encoding. |
| | | |
| | | mimetype: application/x-microsoft.net.object.bytearray.base64 |
| | | value : The object must be serialized into a byte array |
| | | : using a System.ComponentModel.TypeConverter |
| | | : and then encoded with base64 encoding. |
| | | --> |
| | | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> |
| | | <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> |
| | | <xsd:element name="root" msdata:IsDataSet="true"> |
| | | <xsd:complexType> |
| | | <xsd:choice maxOccurs="unbounded"> |
| | | <xsd:element name="metadata"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" use="required" type="xsd:string" /> |
| | | <xsd:attribute name="type" type="xsd:string" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="assembly"> |
| | | <xsd:complexType> |
| | | <xsd:attribute name="alias" type="xsd:string" /> |
| | | <xsd:attribute name="name" type="xsd:string" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="data"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> |
| | | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> |
| | | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> |
| | | <xsd:attribute ref="xml:space" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | <xsd:element name="resheader"> |
| | | <xsd:complexType> |
| | | <xsd:sequence> |
| | | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> |
| | | </xsd:sequence> |
| | | <xsd:attribute name="name" type="xsd:string" use="required" /> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:choice> |
| | | </xsd:complexType> |
| | | </xsd:element> |
| | | </xsd:schema> |
| | | <resheader name="resmimetype"> |
| | | <value>text/microsoft-resx</value> |
| | | </resheader> |
| | | <resheader name="version"> |
| | | <value>2.0</value> |
| | | </resheader> |
| | | <resheader name="reader"> |
| | | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <resheader name="writer"> |
| | | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
| | | </resheader> |
| | | <metadata name="Tool.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>17, 17</value> |
| | | </metadata> |
| | | <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
| | | <data name="tc.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | | YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADCSURBVDhPpZJdCoMwEIRzpxxJ6Ak2z/ZZnysIBXuUHMA7 |
| | | bXeWrGBMYkoHh+gk8xl/XEneP7jXqXIWJkIgHscnT/PEy2vhz7ZhMQ/Dm5l3ObRcB1ACzAKQ6FTcV69G |
| | | rgWTbUl3QFQtFgGpfAAoAVDOi2ZbrwW5hwY4N+P6FmDlkrsBq6zOy3AXIEkhGHMbIMaorgGgI8Cu7CsY |
| | | wOZbAEgDBch/gOveRzgJAKLwH0CGJsDmxU1dAMiSu3R5iZr+oJuic1+SJ5jRbOqnmgAAAABJRU5ErkJg |
| | | gg== |
| | | </value> |
| | | </data> |
| | | <data name="toolStripButton1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> |
| | | <value> |
| | | iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 |
| | | YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADCSURBVDhPpZJdCoMwEIRzpxxJ6Ak2z/ZZnysIBXuUHMA7 |
| | | bXeWrGBMYkoHh+gk8xl/XEneP7jXqXIWJkIgHscnT/PEy2vhz7ZhMQ/Dm5l3ObRcB1ACzAKQ6FTcV69G |
| | | rgWTbUl3QFQtFgGpfAAoAVDOi2ZbrwW5hwY4N+P6FmDlkrsBq6zOy3AXIEkhGHMbIMaorgGgI8Cu7CsY |
| | | wOZbAEgDBch/gOveRzgJAKLwH0CGJsDmxU1dAMiSu3R5iZr+oJuic1+SJ5jRbOqnmgAAAABJRU5ErkJg |
| | | gg== |
| | | </value> |
| | | </data> |
| | | <metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>102, 16</value> |
| | | </metadata> |
| | | <metadata name="timer2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>191, 16</value> |
| | | </metadata> |
| | | <metadata name="timer3.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> |
| | | <value>281, 16</value> |
| | | </metadata> |
| | | <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> |
| | | <value>37</value> |
| | | </metadata> |
| | | </root> |
| | |
| | | // |
| | | // txtHDeptID |
| | | // |
| | | this.txtHDeptID.Location = new System.Drawing.Point(131, 107); |
| | | this.txtHDeptID.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.txtHDeptID.Location = new System.Drawing.Point(98, 86); |
| | | this.txtHDeptID.Name = "txtHDeptID"; |
| | | this.txtHDeptID.Size = new System.Drawing.Size(212, 25); |
| | | this.txtHDeptID.Size = new System.Drawing.Size(160, 21); |
| | | this.txtHDeptID.TabIndex = 0; |
| | | // |
| | | // cmdOK |
| | | // |
| | | this.cmdOK.Location = new System.Drawing.Point(157, 271); |
| | | this.cmdOK.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.cmdOK.Location = new System.Drawing.Point(118, 217); |
| | | this.cmdOK.Name = "cmdOK"; |
| | | this.cmdOK.Size = new System.Drawing.Size(100, 38); |
| | | this.cmdOK.Size = new System.Drawing.Size(75, 30); |
| | | this.cmdOK.TabIndex = 1; |
| | | this.cmdOK.Text = "ç¡®å®"; |
| | | this.cmdOK.UseVisualStyleBackColor = true; |
| | |
| | | // |
| | | // cmdCancel |
| | | // |
| | | this.cmdCancel.Location = new System.Drawing.Point(265, 271); |
| | | this.cmdCancel.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.cmdCancel.Location = new System.Drawing.Point(199, 217); |
| | | this.cmdCancel.Name = "cmdCancel"; |
| | | this.cmdCancel.Size = new System.Drawing.Size(100, 38); |
| | | this.cmdCancel.Size = new System.Drawing.Size(75, 30); |
| | | this.cmdCancel.TabIndex = 2; |
| | | this.cmdCancel.Text = "åæ¶"; |
| | | this.cmdCancel.UseVisualStyleBackColor = true; |
| | |
| | | // label1 |
| | | // |
| | | this.label1.AutoSize = true; |
| | | this.label1.Location = new System.Drawing.Point(13, 111); |
| | | this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
| | | this.label1.Location = new System.Drawing.Point(10, 89); |
| | | this.label1.Name = "label1"; |
| | | this.label1.Size = new System.Drawing.Size(67, 15); |
| | | this.label1.Size = new System.Drawing.Size(53, 12); |
| | | this.label1.TabIndex = 3; |
| | | this.label1.Text = "é»è®¤å·¥æ®µ"; |
| | | // |
| | | // label2 |
| | | // |
| | | this.label2.AutoSize = true; |
| | | this.label2.Location = new System.Drawing.Point(13, 144); |
| | | this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
| | | this.label2.Location = new System.Drawing.Point(10, 115); |
| | | this.label2.Name = "label2"; |
| | | this.label2.Size = new System.Drawing.Size(97, 15); |
| | | this.label2.Size = new System.Drawing.Size(77, 12); |
| | | this.label2.TabIndex = 5; |
| | | this.label2.Text = "é»è®¤å¯å¨çæ¿"; |
| | | // |
| | | // txtHOPWin |
| | | // |
| | | this.txtHOPWin.Location = new System.Drawing.Point(131, 140); |
| | | this.txtHOPWin.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.txtHOPWin.Location = new System.Drawing.Point(98, 112); |
| | | this.txtHOPWin.Name = "txtHOPWin"; |
| | | this.txtHOPWin.Size = new System.Drawing.Size(233, 25); |
| | | this.txtHOPWin.Size = new System.Drawing.Size(176, 21); |
| | | this.txtHOPWin.TabIndex = 4; |
| | | // |
| | | // cmdHDeptID |
| | |
| | | this.cmdHDeptID.BackColor = System.Drawing.Color.Transparent; |
| | | this.cmdHDeptID.Image = ((System.Drawing.Image)(resources.GetObject("cmdHDeptID.Image"))); |
| | | this.cmdHDeptID.ImageAlign = System.Drawing.ContentAlignment.TopRight; |
| | | this.cmdHDeptID.Location = new System.Drawing.Point(336, 107); |
| | | this.cmdHDeptID.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.cmdHDeptID.Location = new System.Drawing.Point(252, 86); |
| | | this.cmdHDeptID.Name = "cmdHDeptID"; |
| | | this.cmdHDeptID.Size = new System.Drawing.Size(29, 28); |
| | | this.cmdHDeptID.Size = new System.Drawing.Size(22, 22); |
| | | this.cmdHDeptID.TabIndex = 78; |
| | | this.cmdHDeptID.UseVisualStyleBackColor = false; |
| | | this.cmdHDeptID.Click += new System.EventHandler(this.cmdHDeptID_Click); |
| | |
| | | this.button1.BackColor = System.Drawing.Color.Transparent; |
| | | this.button1.Image = ((System.Drawing.Image)(resources.GetObject("button1.Image"))); |
| | | this.button1.ImageAlign = System.Drawing.ContentAlignment.TopRight; |
| | | this.button1.Location = new System.Drawing.Point(336, 31); |
| | | this.button1.Margin = new System.Windows.Forms.Padding(4); |
| | | this.button1.Location = new System.Drawing.Point(252, 25); |
| | | this.button1.Name = "button1"; |
| | | this.button1.Size = new System.Drawing.Size(29, 28); |
| | | this.button1.Size = new System.Drawing.Size(22, 22); |
| | | this.button1.TabIndex = 81; |
| | | this.button1.UseVisualStyleBackColor = false; |
| | | this.button1.Click += new System.EventHandler(this.button1_Click); |
| | | // |
| | | // label3 |
| | | // |
| | | this.label3.AutoSize = true; |
| | | this.label3.Location = new System.Drawing.Point(13, 35); |
| | | this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
| | | this.label3.Location = new System.Drawing.Point(10, 28); |
| | | this.label3.Name = "label3"; |
| | | this.label3.Size = new System.Drawing.Size(67, 15); |
| | | this.label3.Size = new System.Drawing.Size(53, 12); |
| | | this.label3.TabIndex = 80; |
| | | this.label3.Text = "é»è®¤è½¦é´"; |
| | | // |
| | | // textBox1 |
| | | // |
| | | this.textBox1.Location = new System.Drawing.Point(131, 31); |
| | | this.textBox1.Margin = new System.Windows.Forms.Padding(4); |
| | | this.textBox1.Location = new System.Drawing.Point(98, 25); |
| | | this.textBox1.Name = "textBox1"; |
| | | this.textBox1.Size = new System.Drawing.Size(212, 25); |
| | | this.textBox1.Size = new System.Drawing.Size(160, 21); |
| | | this.textBox1.TabIndex = 79; |
| | | // |
| | | // button2 |
| | |
| | | this.button2.BackColor = System.Drawing.Color.Transparent; |
| | | this.button2.Image = ((System.Drawing.Image)(resources.GetObject("button2.Image"))); |
| | | this.button2.ImageAlign = System.Drawing.ContentAlignment.TopRight; |
| | | this.button2.Location = new System.Drawing.Point(336, 67); |
| | | this.button2.Margin = new System.Windows.Forms.Padding(4); |
| | | this.button2.Location = new System.Drawing.Point(252, 54); |
| | | this.button2.Name = "button2"; |
| | | this.button2.Size = new System.Drawing.Size(29, 28); |
| | | this.button2.Size = new System.Drawing.Size(22, 22); |
| | | this.button2.TabIndex = 84; |
| | | this.button2.UseVisualStyleBackColor = false; |
| | | // |
| | | // label4 |
| | | // |
| | | this.label4.AutoSize = true; |
| | | this.label4.Location = new System.Drawing.Point(13, 71); |
| | | this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
| | | this.label4.Location = new System.Drawing.Point(10, 57); |
| | | this.label4.Name = "label4"; |
| | | this.label4.Size = new System.Drawing.Size(67, 15); |
| | | this.label4.Size = new System.Drawing.Size(53, 12); |
| | | this.label4.TabIndex = 83; |
| | | this.label4.Text = "é»è®¤ä»åº"; |
| | | // |
| | | // textBox2 |
| | | // |
| | | this.textBox2.Location = new System.Drawing.Point(131, 67); |
| | | this.textBox2.Margin = new System.Windows.Forms.Padding(4); |
| | | this.textBox2.Location = new System.Drawing.Point(98, 54); |
| | | this.textBox2.Name = "textBox2"; |
| | | this.textBox2.Size = new System.Drawing.Size(212, 25); |
| | | this.textBox2.Size = new System.Drawing.Size(160, 21); |
| | | this.textBox2.TabIndex = 82; |
| | | // |
| | | // Frm_MESSetIni |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.ClientSize = new System.Drawing.Size(396, 334); |
| | | this.ClientSize = new System.Drawing.Size(297, 267); |
| | | this.Controls.Add(this.button2); |
| | | this.Controls.Add(this.label4); |
| | | this.Controls.Add(this.textBox2); |
| | |
| | | this.Controls.Add(this.cmdOK); |
| | | this.Controls.Add(this.txtHDeptID); |
| | | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; |
| | | this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.Name = "Frm_MESSetIni"; |
| | | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
| | | this.Text = "ç³»ç»è®¾ç½®"; |
| | |
| | | txtHOPWin.Text = sWinName; |
| | | } |
| | | |
| | | private void button1_Click(object sender, EventArgs e) |
| | | { |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | UserName=admin |
| | | UserPsd=jinghuanzh |
| | | Remember=1 |
| | | [OPenWin] |
| | | gnbm=Sc9910 |
| | | gnsy=Sc_WorkBillPlanSumReportKB |
| | | gnmc=Sc_CJKB |
| | |
| | | 0fd75010422ae4dfac5c4dbd0f767f162f9427ce |
| | | 92ce8f1a8e70e960fb251b303d4b66bf2cc9cf64 |
| | |
| | | F:\GITä»åº\ZYLMES\NETERPNoWin\bin\x86\Debug\WarM.dll.config |
| | | F:\GITä»åº\ZYLMES\NETERPNoWin\bin\x86\Debug\WorkM.pdb |
| | | F:\GITä»åº\ZYLMES\NETERPNoWin\obj\x86\Debug\NETERPNoWin.csproj.CopyComplete |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NETERPNoWin.exe |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NETERPNoWin.pdb |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\BaseSet.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\BLL.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\DAL.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\DBUtility.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Kanban.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Model.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\OAM.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\PlanM.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Pub_Class.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Pub_Control.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\SQLHelper.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\WarM.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\WorkM.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\AxInterop.gregn6Lib.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NPOI.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NPOI.OOXML.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Kingdee.BOS.WebApi.Client.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\AxInterop.grdes6Lib.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Interop.gregn6Lib.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NPOI.OpenXmlFormats.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\NPOI.OpenXml4Net.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Newtonsoft.Json.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\BaseSet.pdb |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\BLL.pdb |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\DAL.pdb |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\DBUtility.pdb |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Kanban.pdb |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Model.pdb |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\OAM.pdb |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\PlanM.pdb |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Pub_Class.pdb |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\Pub_Control.pdb |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\SQLHelper.pdb |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\WarM.pdb |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\WarM.dll.config |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\WorkM.pdb |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.csprojAssemblyReference.cache |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\obj\x86\Debug\Interop.gregn6Lib.dll |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.csproj.ResolveComReference.cache |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.Form1.resources |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.Frm_MESSetIni.resources |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.OA_MessageBox.resources |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.Frm_Show.resources |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.MDIMain.resources |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.Properties.Resources.resources |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.Xt_Wait.resources |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.MESMain.resources |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.csproj.GenerateResource.cache |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.csproj.CoreCompileInputs.cache |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.csproj.CopyComplete |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.exe |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\obj\x86\Debug\NETERPNoWin.pdb |
| | | D:\Gitä»åº\MESWMS-API(ææ°)\MES-WEB-API\MES-WEB-API\NETERPNoWin\bin\x86\Debug\stdole.dll |
| | |
| | | oKf_InitStockBill_WW.MdiParent = oMain; |
| | | oKf_InitStockBill_WW.Show(); |
| | | break; |
| | | case "sc_cgkb": |
| | | //æé |
| | | Sc_CGKB oSc_CGKB = new Sc_CGKB(); |
| | | oSc_CGKB.MdiParent = oMain; |
| | | oSc_CGKB.Show(); |
| | | break; |
| | | case "sc_cjkb": |
| | | //æé |
| | | Sc_CJKB oSc_CJKB = new Sc_CJKB(); |
| | | oSc_CJKB.MdiParent = oMain; |
| | | oSc_CJKB.Show(); |
| | | break; |
| | | case "sc_qlkb": |
| | | //æé |
| | | Sc_QLKB oSc_QLKB = new Sc_QLKB(); |
| | | oSc_QLKB.MdiParent = oMain; |
| | | oSc_QLKB.Show(); |
| | | break; |
| | | default: |
| | | break; |
| | | } |
| | |
| | | // |
| | | this.Sc_ICMOBillList_K3.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.Sc_ICMOBillList_K3.Image = ((System.Drawing.Image)(resources.GetObject("Sc_ICMOBillList_K3.Image"))); |
| | | this.Sc_ICMOBillList_K3.Location = new System.Drawing.Point(161, 54); |
| | | this.Sc_ICMOBillList_K3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.Sc_ICMOBillList_K3.Location = new System.Drawing.Point(121, 43); |
| | | this.Sc_ICMOBillList_K3.Name = "Sc_ICMOBillList_K3"; |
| | | this.Sc_ICMOBillList_K3.Size = new System.Drawing.Size(111, 104); |
| | | this.Sc_ICMOBillList_K3.Size = new System.Drawing.Size(83, 83); |
| | | this.Sc_ICMOBillList_K3.TabIndex = 1; |
| | | this.Sc_ICMOBillList_K3.Tag = "å½åå·¥å"; |
| | | this.Sc_ICMOBillList_K3.UseVisualStyleBackColor = true; |
| | |
| | | // |
| | | this.Sc_MESBeginWorkBill_Fast.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.Sc_MESBeginWorkBill_Fast.Image = ((System.Drawing.Image)(resources.GetObject("Sc_MESBeginWorkBill_Fast.Image"))); |
| | | this.Sc_MESBeginWorkBill_Fast.Location = new System.Drawing.Point(621, 249); |
| | | this.Sc_MESBeginWorkBill_Fast.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.Sc_MESBeginWorkBill_Fast.Location = new System.Drawing.Point(466, 199); |
| | | this.Sc_MESBeginWorkBill_Fast.Name = "Sc_MESBeginWorkBill_Fast"; |
| | | this.Sc_MESBeginWorkBill_Fast.Size = new System.Drawing.Size(111, 104); |
| | | this.Sc_MESBeginWorkBill_Fast.Size = new System.Drawing.Size(83, 83); |
| | | this.Sc_MESBeginWorkBill_Fast.TabIndex = 7; |
| | | this.Sc_MESBeginWorkBill_Fast.Tag = "å¼å·¥å"; |
| | | this.Sc_MESBeginWorkBill_Fast.UseVisualStyleBackColor = true; |
| | |
| | | // |
| | | this.Sc_ProcExchReport_Fast.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.Sc_ProcExchReport_Fast.Image = ((System.Drawing.Image)(resources.GetObject("Sc_ProcExchReport_Fast.Image"))); |
| | | this.Sc_ProcExchReport_Fast.Location = new System.Drawing.Point(847, 249); |
| | | this.Sc_ProcExchReport_Fast.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.Sc_ProcExchReport_Fast.Location = new System.Drawing.Point(635, 199); |
| | | this.Sc_ProcExchReport_Fast.Name = "Sc_ProcExchReport_Fast"; |
| | | this.Sc_ProcExchReport_Fast.Size = new System.Drawing.Size(111, 104); |
| | | this.Sc_ProcExchReport_Fast.Size = new System.Drawing.Size(83, 83); |
| | | this.Sc_ProcExchReport_Fast.TabIndex = 8; |
| | | this.Sc_ProcExchReport_Fast.Tag = "äº§éæ±æ¥å"; |
| | | this.Sc_ProcExchReport_Fast.UseVisualStyleBackColor = true; |
| | |
| | | // |
| | | this.Sc_WorkBillPlanReportKB.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.Sc_WorkBillPlanReportKB.Image = ((System.Drawing.Image)(resources.GetObject("Sc_WorkBillPlanReportKB.Image"))); |
| | | this.Sc_WorkBillPlanReportKB.Location = new System.Drawing.Point(393, 54); |
| | | this.Sc_WorkBillPlanReportKB.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.Sc_WorkBillPlanReportKB.Location = new System.Drawing.Point(295, 43); |
| | | this.Sc_WorkBillPlanReportKB.Name = "Sc_WorkBillPlanReportKB"; |
| | | this.Sc_WorkBillPlanReportKB.Size = new System.Drawing.Size(111, 104); |
| | | this.Sc_WorkBillPlanReportKB.Size = new System.Drawing.Size(83, 83); |
| | | this.Sc_WorkBillPlanReportKB.TabIndex = 2; |
| | | this.Sc_WorkBillPlanReportKB.Tag = "计åçæ¿"; |
| | | this.Sc_WorkBillPlanReportKB.UseVisualStyleBackColor = true; |
| | |
| | | // |
| | | this.Sc_WorkBillPlanSumReportKB.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.Sc_WorkBillPlanSumReportKB.Image = ((System.Drawing.Image)(resources.GetObject("Sc_WorkBillPlanSumReportKB.Image"))); |
| | | this.Sc_WorkBillPlanSumReportKB.Location = new System.Drawing.Point(621, 54); |
| | | this.Sc_WorkBillPlanSumReportKB.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.Sc_WorkBillPlanSumReportKB.Location = new System.Drawing.Point(466, 43); |
| | | this.Sc_WorkBillPlanSumReportKB.Name = "Sc_WorkBillPlanSumReportKB"; |
| | | this.Sc_WorkBillPlanSumReportKB.Size = new System.Drawing.Size(111, 104); |
| | | this.Sc_WorkBillPlanSumReportKB.Size = new System.Drawing.Size(83, 83); |
| | | this.Sc_WorkBillPlanSumReportKB.TabIndex = 3; |
| | | this.Sc_WorkBillPlanSumReportKB.Tag = "æ±æ»çæ¿1"; |
| | | this.Sc_WorkBillPlanSumReportKB.UseVisualStyleBackColor = true; |
| | |
| | | this.label1.BackColor = System.Drawing.Color.Transparent; |
| | | this.label1.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label1.ForeColor = System.Drawing.Color.Black; |
| | | this.label1.Location = new System.Drawing.Point(156, 180); |
| | | this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
| | | this.label1.Location = new System.Drawing.Point(117, 144); |
| | | this.label1.Name = "label1"; |
| | | this.label1.Size = new System.Drawing.Size(110, 24); |
| | | this.label1.Size = new System.Drawing.Size(93, 19); |
| | | this.label1.TabIndex = 65; |
| | | this.label1.Text = "å½åå·¥å"; |
| | | this.label1.Text = "éè´çæ¿"; |
| | | this.label1.Click += new System.EventHandler(this.label1_Click); |
| | | // |
| | | // label2 |
| | | // |
| | |
| | | this.label2.BackColor = System.Drawing.Color.Transparent; |
| | | this.label2.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label2.ForeColor = System.Drawing.Color.Black; |
| | | this.label2.Location = new System.Drawing.Point(629, 374); |
| | | this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
| | | this.label2.Location = new System.Drawing.Point(472, 299); |
| | | this.label2.Name = "label2"; |
| | | this.label2.Size = new System.Drawing.Size(85, 24); |
| | | this.label2.Size = new System.Drawing.Size(72, 19); |
| | | this.label2.TabIndex = 66; |
| | | this.label2.Text = "å¼å·¥å"; |
| | | // |
| | |
| | | this.label3.BackColor = System.Drawing.Color.Transparent; |
| | | this.label3.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label3.ForeColor = System.Drawing.Color.Black; |
| | | this.label3.Location = new System.Drawing.Point(831, 374); |
| | | this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
| | | this.label3.Location = new System.Drawing.Point(623, 299); |
| | | this.label3.Name = "label3"; |
| | | this.label3.Size = new System.Drawing.Size(135, 24); |
| | | this.label3.Size = new System.Drawing.Size(114, 19); |
| | | this.label3.TabIndex = 67; |
| | | this.label3.Text = "äº§éæ±æ¥å"; |
| | | // |
| | |
| | | this.label6.BackColor = System.Drawing.Color.Transparent; |
| | | this.label6.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label6.ForeColor = System.Drawing.Color.Black; |
| | | this.label6.Location = new System.Drawing.Point(388, 180); |
| | | this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
| | | this.label6.Location = new System.Drawing.Point(291, 144); |
| | | this.label6.Name = "label6"; |
| | | this.label6.Size = new System.Drawing.Size(110, 24); |
| | | this.label6.Size = new System.Drawing.Size(93, 19); |
| | | this.label6.TabIndex = 70; |
| | | this.label6.Text = "计åçæ¿"; |
| | | this.label6.Text = "车é´çæ¿"; |
| | | this.label6.Click += new System.EventHandler(this.label6_Click); |
| | | // |
| | | // label7 |
| | | // |
| | |
| | | this.label7.BackColor = System.Drawing.Color.Transparent; |
| | | this.label7.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label7.ForeColor = System.Drawing.Color.Black; |
| | | this.label7.Location = new System.Drawing.Point(617, 180); |
| | | this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
| | | this.label7.Location = new System.Drawing.Point(463, 144); |
| | | this.label7.Name = "label7"; |
| | | this.label7.Size = new System.Drawing.Size(110, 24); |
| | | this.label7.Size = new System.Drawing.Size(93, 19); |
| | | this.label7.TabIndex = 71; |
| | | this.label7.Text = "æ±æ»çæ¿"; |
| | | this.label7.Text = "缺æçæ¿"; |
| | | this.label7.Click += new System.EventHandler(this.label7_Click); |
| | | // |
| | | // label8 |
| | | // |
| | |
| | | this.label8.BackColor = System.Drawing.Color.Transparent; |
| | | this.label8.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label8.ForeColor = System.Drawing.Color.Black; |
| | | this.label8.Location = new System.Drawing.Point(615, 566); |
| | | this.label8.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
| | | this.label8.Location = new System.Drawing.Point(461, 453); |
| | | this.label8.Name = "label8"; |
| | | this.label8.Size = new System.Drawing.Size(110, 24); |
| | | this.label8.Size = new System.Drawing.Size(93, 19); |
| | | this.label8.TabIndex = 73; |
| | | this.label8.Text = "ç³»ç»è®¾ç½®"; |
| | | // |
| | |
| | | // |
| | | this.cmdSetKanbanIni.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.cmdSetKanbanIni.Image = ((System.Drawing.Image)(resources.GetObject("cmdSetKanbanIni.Image"))); |
| | | this.cmdSetKanbanIni.Location = new System.Drawing.Point(621, 440); |
| | | this.cmdSetKanbanIni.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.cmdSetKanbanIni.Location = new System.Drawing.Point(466, 352); |
| | | this.cmdSetKanbanIni.Name = "cmdSetKanbanIni"; |
| | | this.cmdSetKanbanIni.Size = new System.Drawing.Size(111, 104); |
| | | this.cmdSetKanbanIni.Size = new System.Drawing.Size(83, 83); |
| | | this.cmdSetKanbanIni.TabIndex = 11; |
| | | this.cmdSetKanbanIni.Tag = "ç³»ç»è®¾ç½®"; |
| | | this.cmdSetKanbanIni.UseVisualStyleBackColor = true; |
| | |
| | | this.label9.BackColor = System.Drawing.Color.Transparent; |
| | | this.label9.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label9.ForeColor = System.Drawing.Color.Black; |
| | | this.label9.Location = new System.Drawing.Point(131, 374); |
| | | this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
| | | this.label9.Location = new System.Drawing.Point(98, 299); |
| | | this.label9.Name = "label9"; |
| | | this.label9.Size = new System.Drawing.Size(160, 24); |
| | | this.label9.Size = new System.Drawing.Size(135, 19); |
| | | this.label9.TabIndex = 75; |
| | | this.label9.Text = "æ¬æºç¼ºæçæ¿"; |
| | | // |
| | |
| | | // |
| | | this.Sc_BJQLFXB.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.Sc_BJQLFXB.Image = ((System.Drawing.Image)(resources.GetObject("Sc_BJQLFXB.Image"))); |
| | | this.Sc_BJQLFXB.Location = new System.Drawing.Point(161, 249); |
| | | this.Sc_BJQLFXB.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.Sc_BJQLFXB.Location = new System.Drawing.Point(121, 199); |
| | | this.Sc_BJQLFXB.Name = "Sc_BJQLFXB"; |
| | | this.Sc_BJQLFXB.Size = new System.Drawing.Size(111, 104); |
| | | this.Sc_BJQLFXB.Size = new System.Drawing.Size(83, 83); |
| | | this.Sc_BJQLFXB.TabIndex = 5; |
| | | this.Sc_BJQLFXB.Tag = "æ¬æºç¼ºæçæ¿"; |
| | | this.Sc_BJQLFXB.UseVisualStyleBackColor = true; |
| | |
| | | this.label10.BackColor = System.Drawing.Color.Transparent; |
| | | this.label10.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label10.ForeColor = System.Drawing.Color.Black; |
| | | this.label10.Location = new System.Drawing.Point(365, 374); |
| | | this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
| | | this.label10.Location = new System.Drawing.Point(274, 299); |
| | | this.label10.Name = "label10"; |
| | | this.label10.Size = new System.Drawing.Size(160, 24); |
| | | this.label10.Size = new System.Drawing.Size(135, 19); |
| | | this.label10.TabIndex = 77; |
| | | this.label10.Text = "ç¼ºææ±æ»çæ¿"; |
| | | // |
| | |
| | | // |
| | | this.Sc_HZQLCGKB.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.Sc_HZQLCGKB.Image = ((System.Drawing.Image)(resources.GetObject("Sc_HZQLCGKB.Image"))); |
| | | this.Sc_HZQLCGKB.Location = new System.Drawing.Point(393, 249); |
| | | this.Sc_HZQLCGKB.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.Sc_HZQLCGKB.Location = new System.Drawing.Point(295, 199); |
| | | this.Sc_HZQLCGKB.Name = "Sc_HZQLCGKB"; |
| | | this.Sc_HZQLCGKB.Size = new System.Drawing.Size(111, 104); |
| | | this.Sc_HZQLCGKB.Size = new System.Drawing.Size(83, 83); |
| | | this.Sc_HZQLCGKB.TabIndex = 6; |
| | | this.Sc_HZQLCGKB.Tag = "ç¼ºææ±æ»çæ¿"; |
| | | this.Sc_HZQLCGKB.UseVisualStyleBackColor = true; |
| | |
| | | this.label11.BackColor = System.Drawing.Color.Transparent; |
| | | this.label11.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label11.ForeColor = System.Drawing.Color.Black; |
| | | this.label11.Location = new System.Drawing.Point(841, 180); |
| | | this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
| | | this.label11.Location = new System.Drawing.Point(631, 144); |
| | | this.label11.Name = "label11"; |
| | | this.label11.Size = new System.Drawing.Size(110, 24); |
| | | this.label11.Size = new System.Drawing.Size(93, 19); |
| | | this.label11.TabIndex = 79; |
| | | this.label11.Text = "åè´§çæ¿"; |
| | | // |
| | |
| | | // |
| | | this.Sc_BRFHKB.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.Sc_BRFHKB.Image = ((System.Drawing.Image)(resources.GetObject("Sc_BRFHKB.Image"))); |
| | | this.Sc_BRFHKB.Location = new System.Drawing.Point(847, 54); |
| | | this.Sc_BRFHKB.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.Sc_BRFHKB.Location = new System.Drawing.Point(635, 43); |
| | | this.Sc_BRFHKB.Name = "Sc_BRFHKB"; |
| | | this.Sc_BRFHKB.Size = new System.Drawing.Size(111, 104); |
| | | this.Sc_BRFHKB.Size = new System.Drawing.Size(83, 83); |
| | | this.Sc_BRFHKB.TabIndex = 4; |
| | | this.Sc_BRFHKB.Tag = "åè´§çæ¿"; |
| | | this.Sc_BRFHKB.UseVisualStyleBackColor = true; |
| | |
| | | this.label12.BackColor = System.Drawing.Color.Transparent; |
| | | this.label12.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label12.ForeColor = System.Drawing.Color.Black; |
| | | this.label12.Location = new System.Drawing.Point(841, 566); |
| | | this.label12.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
| | | this.label12.Location = new System.Drawing.Point(631, 453); |
| | | this.label12.Name = "label12"; |
| | | this.label12.Size = new System.Drawing.Size(110, 24); |
| | | this.label12.Size = new System.Drawing.Size(93, 19); |
| | | this.label12.TabIndex = 81; |
| | | this.label12.Text = "éåºç³»ç»"; |
| | | // |
| | |
| | | // |
| | | this.cmdClose.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.cmdClose.Image = ((System.Drawing.Image)(resources.GetObject("cmdClose.Image"))); |
| | | this.cmdClose.Location = new System.Drawing.Point(847, 440); |
| | | this.cmdClose.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.cmdClose.Location = new System.Drawing.Point(635, 352); |
| | | this.cmdClose.Name = "cmdClose"; |
| | | this.cmdClose.Size = new System.Drawing.Size(111, 104); |
| | | this.cmdClose.Size = new System.Drawing.Size(83, 83); |
| | | this.cmdClose.TabIndex = 12; |
| | | this.cmdClose.Tag = "éåºç³»ç»"; |
| | | this.cmdClose.UseVisualStyleBackColor = true; |
| | |
| | | this.label13.BackColor = System.Drawing.Color.Transparent; |
| | | this.label13.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label13.ForeColor = System.Drawing.Color.Black; |
| | | this.label13.Location = new System.Drawing.Point(388, 566); |
| | | this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
| | | this.label13.Location = new System.Drawing.Point(291, 453); |
| | | this.label13.Name = "label13"; |
| | | this.label13.Size = new System.Drawing.Size(110, 24); |
| | | this.label13.Size = new System.Drawing.Size(93, 19); |
| | | this.label13.TabIndex = 85; |
| | | this.label13.Text = "é
æçæ¿"; |
| | | // |
| | |
| | | this.label14.BackColor = System.Drawing.Color.Transparent; |
| | | this.label14.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.label14.ForeColor = System.Drawing.Color.Black; |
| | | this.label14.Location = new System.Drawing.Point(135, 566); |
| | | this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); |
| | | this.label14.Location = new System.Drawing.Point(101, 453); |
| | | this.label14.Name = "label14"; |
| | | this.label14.Size = new System.Drawing.Size(160, 24); |
| | | this.label14.Size = new System.Drawing.Size(135, 19); |
| | | this.label14.TabIndex = 84; |
| | | this.label14.Text = "æ£æµè¿åº¦çæ¿"; |
| | | // |
| | |
| | | // |
| | | this.Sc_WorkBillProcMaterReportKB.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.Sc_WorkBillProcMaterReportKB.Image = ((System.Drawing.Image)(resources.GetObject("Sc_WorkBillProcMaterReportKB.Image"))); |
| | | this.Sc_WorkBillProcMaterReportKB.Location = new System.Drawing.Point(393, 440); |
| | | this.Sc_WorkBillProcMaterReportKB.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.Sc_WorkBillProcMaterReportKB.Location = new System.Drawing.Point(295, 352); |
| | | this.Sc_WorkBillProcMaterReportKB.Name = "Sc_WorkBillProcMaterReportKB"; |
| | | this.Sc_WorkBillProcMaterReportKB.Size = new System.Drawing.Size(111, 104); |
| | | this.Sc_WorkBillProcMaterReportKB.Size = new System.Drawing.Size(83, 83); |
| | | this.Sc_WorkBillProcMaterReportKB.TabIndex = 83; |
| | | this.Sc_WorkBillProcMaterReportKB.Tag = "é
æçæ¿"; |
| | | this.Sc_WorkBillProcMaterReportKB.UseVisualStyleBackColor = true; |
| | |
| | | // |
| | | this.Sc_WorkBillProcTestReportKB.Font = new System.Drawing.Font("é»ä½", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
| | | this.Sc_WorkBillProcTestReportKB.Image = ((System.Drawing.Image)(resources.GetObject("Sc_WorkBillProcTestReportKB.Image"))); |
| | | this.Sc_WorkBillProcTestReportKB.Location = new System.Drawing.Point(161, 440); |
| | | this.Sc_WorkBillProcTestReportKB.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.Sc_WorkBillProcTestReportKB.Location = new System.Drawing.Point(121, 352); |
| | | this.Sc_WorkBillProcTestReportKB.Name = "Sc_WorkBillProcTestReportKB"; |
| | | this.Sc_WorkBillProcTestReportKB.Size = new System.Drawing.Size(111, 104); |
| | | this.Sc_WorkBillProcTestReportKB.Size = new System.Drawing.Size(83, 83); |
| | | this.Sc_WorkBillProcTestReportKB.TabIndex = 82; |
| | | this.Sc_WorkBillProcTestReportKB.Tag = "æ£æµè¿åº¦çæ¿"; |
| | | this.Sc_WorkBillProcTestReportKB.UseVisualStyleBackColor = true; |
| | |
| | | // |
| | | // MESMain |
| | | // |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 15F); |
| | | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); |
| | | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; |
| | | this.BackColor = System.Drawing.Color.White; |
| | | this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage"))); |
| | | this.ClientSize = new System.Drawing.Size(1117, 788); |
| | | this.ClientSize = new System.Drawing.Size(838, 630); |
| | | this.Controls.Add(this.label13); |
| | | this.Controls.Add(this.label14); |
| | | this.Controls.Add(this.Sc_WorkBillProcMaterReportKB); |
| | |
| | | this.Controls.Add(this.Sc_MESBeginWorkBill_Fast); |
| | | this.Controls.Add(this.Sc_ICMOBillList_K3); |
| | | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; |
| | | this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); |
| | | this.Name = "MESMain"; |
| | | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
| | | this.Text = "欧讯MESç³»ç»"; |
| | |
| | | { |
| | | //WorkM.Sc_ICMOBillList_K3 oSc_ICMOBillList_K3 = new WorkM.Sc_ICMOBillList_K3(); |
| | | //oSc_ICMOBillList_K3.Show(); |
| | | Kanban.Sc_CGKB oSc_CGKB = new Kanban.Sc_CGKB(); |
| | | oSc_CGKB.ShowDialog(); |
| | | } |
| | | |
| | | private void Sc_MESBeginWorkBill_Fast_Click(object sender, EventArgs e) |
| | |
| | | |
| | | private void Sc_WorkBillPlanReportKB_Click(object sender, EventArgs e) |
| | | { |
| | | Kanban.Sc_WorkBillPlanReportKB oSc_WorkBillPlanReportKB = new Kanban.Sc_WorkBillPlanReportKB(); |
| | | oSc_WorkBillPlanReportKB.ShowDialog(); |
| | | Kanban.Sc_CJKB oSc_CJKB = new Kanban.Sc_CJKB(); |
| | | oSc_CJKB.ShowDialog(); |
| | | } |
| | | |
| | | private void Sc_WorkBillPlanSumReportKB_Click(object sender, EventArgs e) |
| | | { |
| | | Kanban.Sc_WorkBillPlanSumReportKB oSc_WorkBillPlanSumReportKB = new Kanban.Sc_WorkBillPlanSumReportKB(); |
| | | oSc_WorkBillPlanSumReportKB.ShowDialog(); |
| | | Kanban.Sc_QLKB oSc_QLKB = new Kanban.Sc_QLKB(); |
| | | oSc_QLKB.ShowDialog(); |
| | | } |
| | | |
| | | private void cmdClose_Click(object sender, EventArgs e) |
| | |
| | | oSc_WorkBillProcTimeReportKB2.ShowDialog(); |
| | | } |
| | | |
| | | private void label1_Click(object sender, EventArgs e) |
| | | { |
| | | Kanban.Sc_CGKB oSc_CGKB = new Kanban.Sc_CGKB(); |
| | | oSc_CGKB.ShowDialog(); |
| | | } |
| | | |
| | | private void label6_Click(object sender, EventArgs e) |
| | | { |
| | | Kanban.Sc_CJKB oSc_CJKB = new Kanban.Sc_CJKB(); |
| | | oSc_CJKB.ShowDialog(); |
| | | } |
| | | |
| | | private void label7_Click(object sender, EventArgs e) |
| | | { |
| | | Kanban.Sc_QLKB oSc_QLKB = new Kanban.Sc_QLKB(); |
| | | oSc_QLKB.ShowDialog(); |
| | | } |
| | | } |
| | | } |
| | |
| | | <Compile Include="æ¥è¡¨åæ\Kf_BarCodeBackInfoReport_MaterOut_M.designer.cs"> |
| | | <DependentUpon>Kf_BarCodeBackInfoReport_MaterOut_M.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="æ¥è¡¨åæ\Sc_QLKB.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="æ¥è¡¨åæ\Sc_QLKB.designer.cs"> |
| | | <DependentUpon>Sc_QLKB.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="æ¥è¡¨åæ\Sc_CJKB.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="æ¥è¡¨åæ\Sc_CJKB.designer.cs"> |
| | | <DependentUpon>Sc_CJKB.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="æ¥è¡¨åæ\Sc_CGKB.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | | <Compile Include="æ¥è¡¨åæ\Sc_CGKB.designer.cs"> |
| | | <DependentUpon>Sc_CGKB.cs</DependentUpon> |
| | | </Compile> |
| | | <Compile Include="æ¥è¡¨åæ\WMS_BarCodeStatusQueryReport.cs"> |
| | | <SubType>Form</SubType> |
| | | </Compile> |
| | |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="æ¥è¡¨åæ\Kf_BarCodeBackInfoReport_MaterOut_M.resx"> |
| | | <DependentUpon>Kf_BarCodeBackInfoReport_MaterOut_M.cs</DependentUpon> |
| | | <SubType>Designer</SubType> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="æ¥è¡¨åæ\Sc_QLKB.resx"> |
| | | <DependentUpon>Sc_QLKB.cs</DependentUpon> |
| | | <SubType>Designer</SubType> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="æ¥è¡¨åæ\Sc_CJKB.resx"> |
| | | <DependentUpon>Sc_CJKB.cs</DependentUpon> |
| | | <SubType>Designer</SubType> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="æ¥è¡¨åæ\Sc_CGKB.resx"> |
| | | <DependentUpon>Sc_CGKB.cs</DependentUpon> |
| | | <SubType>Designer</SubType> |
| | | </EmbeddedResource> |
| | | <EmbeddedResource Include="æ¥è¡¨åæ\WMS_BarCodeStatusQueryReport.resx"> |
| | |
| | | { |
| | | try |
| | | { |
| | | ClsCN SubCn = new ClsCN(); |
| | | string sSql = ""; |
| | | string sWhere = ""; |
| | | //è¿æ»¤æ¡ä»¶ |
| | | //if (frmCondition.SqlStr.Trim().Length == 0) |
| | | //ClsCN SubCn = new ClsCN(); |
| | | //string sSql = ""; |
| | | //string sWhere = ""; |
| | | ////è¿æ»¤æ¡ä»¶ |
| | | ////if (frmCondition.SqlStr.Trim().Length == 0) |
| | | //// return; |
| | | ////sSql = frmCondition.SqlStr + sWhere + " order by HStatus,HDate "; |
| | | //sSql = "exec h_p_CJKB "; |
| | | //// |
| | | //DSet = SubCn.RunProcReturn(sSql, ViewName, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | ////çæé¦è¡æ é¢ |
| | | //if (DSet == null) |
| | | //{ |
| | | // //MessageBox.Show("没æè¿åä»»ä½ç»æ,请å¨è¿æ»¤æ¡ä¸ç¹å»ãæ¢å¤ãæé®,å°è¯å次æ¥è¯¢ï¼" + DBUtility.ClsPub.sExeReturnInfo); |
| | | // return; |
| | | //sSql = frmCondition.SqlStr + sWhere + " order by HStatus,HDate "; |
| | | sSql = "exec h_p_CJKB "; |
| | | // |
| | | DSet = SubCn.RunProcReturn(sSql, ViewName, ref DBUtility.ClsPub.sExeReturnInfo); |
| | | //çæé¦è¡æ é¢ |
| | | if (DSet == null) |
| | | //} |
| | | ////éæ¾å»ç» |
| | | //DBUtility.Xt_BaseBillFun.CancelFrozenCol(grdMain); |
| | | //// |
| | | //grdMain.DataSource = DSet.Tables[0].DefaultView; |
| | | //// |
| | | |
| | | ////-----------é¢è¦ç¶æ |
| | | ////å¼å·¥æ¶é´å°äºå½å¤©æ¶é´ï¼ä½æ¯ä»»å¡åç¶æè¿æ¯ å¾
ç产ï¼ç³»ç»èªå¨é»è²è¦ç¤ºï¼ |
| | | ////å®å·¥æ¶é´å°äºå½å¤©æ¶é´ï¼ä½æ¯ä»»å¡åè¿æ¯å¾
ç产æè
卿§è¡çï¼ç³»ç»èªå¨çº¢è²è¦ç¤ºï¼ |
| | | ////int HBDateCol = Fun_GetCol("å¼å·¥æ¶é´"); |
| | | ////int HEDateCol = Fun_GetCol("å®å·¥æ¶é´"); |
| | | ////int HStatusCol = Fun_GetCol("çäº§ç¶æ"); |
| | | ////DateTime oNow = DateTime.Today.Date; |
| | | ////for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | ////{ |
| | | //// if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HBDateCol].Value) < oNow && DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HStatusCol].Value) == "å¾
ç产") |
| | | //// { |
| | | //// grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Yellow; |
| | | //// } |
| | | //// if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow && DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HStatusCol].Value) == "å¾
ç产") |
| | | //// { |
| | | //// grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red; |
| | | //// } |
| | | ////} |
| | | |
| | | ////设置å计å |
| | | //string sTotalCol = ""; |
| | | //sTotalCol = DBUtility.Gy_BaseFun.GetTotalCols(DSet); |
| | | //string[] sT; |
| | | //sT = sTotalCol.Split(Convert.ToChar(",")); |
| | | //oSumGrid.BuildTotalCols(sT); |
| | | //// |
| | | ////å»ç» |
| | | //int FrCol = 10; |
| | | //string s = "æ¯"; |
| | | //DBUtility.Xt_BaseBillFun.DisplayGrid(grdMain, this.Name, s, FrCol); |
| | | ////ç»çº¿ |
| | | ////GraphLine(); |
| | | |
| | | ////Total(); |
| | | |
| | | ////for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | ////{ |
| | | //// if (i % 2 == 0) |
| | | //// { |
| | | //// grdMain.Rows[i].DefaultCellStyle.BackColor = Color.SteelBlue; |
| | | //// grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.White; |
| | | //// } |
| | | //// else |
| | | //// { |
| | | //// grdMain.Rows[i].DefaultCellStyle.BackColor = Color.SlateGray; |
| | | //// grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.White; |
| | | //// } |
| | | ////} |
| | | //// |
| | | /// |
| | | |
| | | ClsCN clsCN = new ClsCN(); |
| | | ClsIni clsIni = new ClsIni(); |
| | | string text = ClsIni.ReadIni("Dept", "DeptID", Pub_Class.ClsPub.AppPath + "\\HXErp.ini"); |
| | | this.sDeptID = text; |
| | | string procName = "exec h_p_CJKB " + this.sDeptID; |
| | | this.DSet = clsCN.RunProcReturn(procName, this.ViewName, ref Pub_Class.ClsPub.sExeReturnInfo); |
| | | bool flag = this.DSet == null; |
| | | if (!flag) |
| | | { |
| | | //MessageBox.Show("没æè¿åä»»ä½ç»æ,请å¨è¿æ»¤æ¡ä¸ç¹å»ãæ¢å¤ãæé®,å°è¯å次æ¥è¯¢ï¼" + DBUtility.ClsPub.sExeReturnInfo); |
| | | return; |
| | | Xt_BaseBillFun.CancelFrozenCol(this.grdMain); |
| | | this.grdMain.DataSource = this.DSet.Tables[0].DefaultView; |
| | | string totalCols = Gy_BaseFun.GetTotalCols(this.DSet); |
| | | string[] cols = totalCols.Split(new char[] |
| | | { |
| | | Convert.ToChar(",") |
| | | }); |
| | | this.oSumGrid.BuildTotalCols(cols); |
| | | int frCol = 10; |
| | | string s = "æ¯"; |
| | | Xt_BaseBillFun.DisplayGrid(this.grdMain, base.Name, s, frCol); |
| | | } |
| | | //éæ¾å»ç» |
| | | DBUtility.Xt_BaseBillFun.CancelFrozenCol(grdMain); |
| | | // |
| | | grdMain.DataSource = DSet.Tables[0].DefaultView; |
| | | // |
| | | |
| | | //-----------é¢è¦ç¶æ |
| | | //å¼å·¥æ¶é´å°äºå½å¤©æ¶é´ï¼ä½æ¯ä»»å¡åç¶æè¿æ¯ å¾
ç产ï¼ç³»ç»èªå¨é»è²è¦ç¤ºï¼ |
| | | //å®å·¥æ¶é´å°äºå½å¤©æ¶é´ï¼ä½æ¯ä»»å¡åè¿æ¯å¾
ç产æè
卿§è¡çï¼ç³»ç»èªå¨çº¢è²è¦ç¤ºï¼ |
| | | //int HBDateCol = Fun_GetCol("å¼å·¥æ¶é´"); |
| | | //int HEDateCol = Fun_GetCol("å®å·¥æ¶é´"); |
| | | //int HStatusCol = Fun_GetCol("çäº§ç¶æ"); |
| | | //DateTime oNow = DateTime.Today.Date; |
| | | //for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | //{ |
| | | // if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HBDateCol].Value) < oNow && DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HStatusCol].Value) == "å¾
ç产") |
| | | // { |
| | | // grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Yellow; |
| | | // } |
| | | // if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow && DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HStatusCol].Value) == "å¾
ç产") |
| | | // { |
| | | // grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red; |
| | | // } |
| | | //} |
| | | |
| | | //设置å计å |
| | | string sTotalCol = ""; |
| | | sTotalCol = DBUtility.Gy_BaseFun.GetTotalCols(DSet); |
| | | string[] sT; |
| | | sT = sTotalCol.Split(Convert.ToChar(",")); |
| | | oSumGrid.BuildTotalCols(sT); |
| | | // |
| | | //å»ç» |
| | | int FrCol = 10; |
| | | string s = "æ¯"; |
| | | DBUtility.Xt_BaseBillFun.DisplayGrid(grdMain, this.Name, s, FrCol); |
| | | //ç»çº¿ |
| | | //GraphLine(); |
| | | |
| | | //Total(); |
| | | |
| | | //for (int i = 0; i < grdMain.Rows.Count; i++) |
| | | //{ |
| | | // if (i % 2 == 0) |
| | | // { |
| | | // grdMain.Rows[i].DefaultCellStyle.BackColor = Color.SteelBlue; |
| | | // grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.White; |
| | | // } |
| | | // else |
| | | // { |
| | | // grdMain.Rows[i].DefaultCellStyle.BackColor = Color.SlateGray; |
| | | // grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.White; |
| | | // } |
| | | //} |
| | | // |
| | | } |
| | | catch (Exception e) |
| | | { |