Exemplo n.º 1
0
        private void save_button_Click(object sender, EventArgs e)//保存
        {
            if (this.dicdesc_yTextBox.Text.Trim().Length == 0)
            {
                WJs.alert("请输入名称!");
                dicdesc_yTextBox.Focus();
                return;
            }
            if (this.defvalue_ytComboBox.SelectedIndex < 0)
            {
                WJs.alert("请设置是否为默认值!");
                defvalue_ytComboBox.Focus();
                return;
            }

            ActionLoad ac = ActionLoad.Conn();

            ac.Action = "LKWZSVR.lkeq.JiChuDictionary.EQUnit";
            ac.Sql    = "Save";
            ac.Add("DICGRPID", this.dicgrpid_yTextBox.Text);
            ac.Add("DICDESC", this.dicdesc_yTextBox.Text);
            ac.Add("FIXED", 1);
            ac.Add("PYCODE", this.pycode_yTextBox5.Text);
            ac.Add("DEFVALUE", TvList.getValue(this.defvalue_ytComboBox).ToInt());


            if (!isAdd)
            {
                ac.Add("DICID", dr["DICID"].ToString());
                ac.SetKeyValue("DICGRPID,DICID");
            }
            ac.ServiceLoad += new YtClient.data.events.LoadEventHandle(ac_ServiceLoad);
            ac.Post();
        }
Exemplo n.º 2
0
        private CameraValue GetSelectedTv(double Duration)
        {
            var nearestTv     = TvList.Select(t => new { Tv = t, delta = Math.Abs(t.DoubleValue - Duration) }).OrderBy(d => d.delta);
            var tvCameraValue = nearestTv.First().Tv;

            return(tvCameraValue);
        }
Exemplo n.º 3
0
        private void EQCheckManagEdit_Load(object sender, EventArgs e)
        {
            //this.NextCheckdate_dateTimePicker.Value = dt;
            TvList.newBind().add("作废", "0").add("有效", "1").Bind(Status_ytComboBox1);
            this.Status_ytComboBox1.SelectedIndex = 1;
            this.Status_ytComboBox1.Enabled       = false;
            this.Userid_textBox.ReadOnly          = true;
            this.Username_textBox.ReadOnly        = true;
            this.choscode_textBox.ReadOnly        = true;


            cardId_textBox.Value = drZ["卡片ID"].ToString();
            cardId_textBox.Text  = drZ["卡片ID"].ToString();


            this.deptid_selTextInpt.Value = drZ["使用科室"].ToString();
            this.deptid_selTextInpt.Text  = LData.Es("GetEQAskBuy_KSName_KeepFit", null, new object[] { His.his.Choscode, drZ["使用科室"].ToString() });

            if (isFlag == 0 || isFlag == 1)
            {
                LoadInfo_EQFixManagEdit();
                if (isFlag == 0)
                {
                    this.Save_button.Enabled = false;
                }
            }
            else
            {
                recdate_dateTimePicker.Value = DateTime.Now;
                Userid_textBox.Text          = His.his.UserId.ToString();
                Username_textBox.Text        = His.his.UserName;
                choscode_textBox.Text        = His.his.Choscode;
            }
        }
Exemplo n.º 4
0
 public void InitTv()
 {
     try
     {
         string  sql = "select * from UserType where Sort=1";
         DataSet ds  = DBHelper.ExecuteDataSet(sql, null, null);
         TvList.Nodes.Clear();
         if (ds == null || ds.Tables[0].Rows.Count < 1)
         {
             return;
         }
         DataTable  dt    = ds.Tables[0];
         TreeNode[] nodes = new TreeNode[dt.Rows.Count];
         for (int i = 0; i < dt.Rows.Count; i++)
         {
             DataRow row = dt.Rows[i];
             nodes[i]            = new TreeNode();
             nodes[i].Text       = row["UserTypeName"].ToString();
             nodes[i].Tag        = row["Id"].ToString();
             nodes[i].ImageIndex = 0;
         }
         TvList.ExpandAll();
         TvList.Nodes.AddRange(nodes);
         TvList.SelectedNode = nodes[0];
     }
     catch (Exception ex)
     {
         TracingHelper.Error(ex, typeof(ucCommProductPrice));
     }
 }
Exemplo n.º 5
0
        private void WZStockQuery_Load(object sender, EventArgs e)
        {
            TvList.newBind().Load("FindWare_EQStockQuery", new object[] { His.his.Choscode }).Bind(this.WARECODE);
            TvList.newBind().Load("StatisticQuery_EQStockQueryKindName", new object[] { His.his.Choscode }).Bind(this.Column29);

            TvList.newBind().Load("StatisticQuery_EQStockQueryKSName", new object[] { His.his.Choscode }).Bind(this.Column14);
            TvList.newBind().Load("StatisticQuery_EQStockQueryKSName", new object[] { His.his.Choscode }).Bind(this.Column2);
            TvList.newBind().Load("EQStatisticQuery_DanWeiBianMa", new object[] { His.his.Choscode }).Bind(this.UNITCODE);
            TvList.newBind().Load("EQStatisticQuery_DanWeiBianMa", new object[] { His.his.Choscode }).Bind(this.UNITCODEXI);

            this.selTextInpt1.SelParam = "{key}|{key}|" + His.his.Choscode; //为什么要这样写?
            //  selTextInpt1.BxSr = false;//必须输入查询关键字
            this.selTextInpt1.Sql = "FindEQKind_EQStockQuery";              //与效期的数据库查询语句相同
            // this.selTextInpt1.textBox1.ReadOnly = true;

            this.selTextInpt2.SelParam = "{key}|{key}|{key}|{key}|" + His.his.Choscode;
            //  selTextInpt1.BxSr = false;//必须输入查询关键字
            this.selTextInpt2.Sql = "FindEQDict_EQStockQuery";//与效期的数据库查询语句相同
            //  this.selTextInpt2.textBox1.ReadOnly = true;
            this.selTextInpt_Ware.Sql = "EQStockQuery_EQOutWare";

            this.selTextInpt_Ware.SelParam = His.his.Choscode + "|{key}|{key}|{key}|{key}";

            this.selTextInpt_KS.Sql      = "StatQuery_EQOutQueryKS";
            this.selTextInpt_KS.SelParam = His.his.Choscode + "|{key}|{key}|{key}";
        }
Exemplo n.º 6
0
        private void WZDictManag_Load(object sender, EventArgs e) //窗体加载
        {
            WJs.SetDictTimeOut();                                 //什么意思?
            TvList.newBind().add("是", "1").add("否", "0").Bind(this.Column22);
            TvList.newBind().add("是", "1").add("否", "0").Bind(this.Column14);

            TvList.newBind().add("平均年限法", "1").add("工作量法", "2").add("年折旧率", "3").add("手工折旧", "4").Bind(this.Column15);



            TvList.newBind().Load("EQDict_KindCode", new object[] { His.his.Choscode }).Bind(this.Column9);
            TvList.newBind().Load("EQDict_CountCode", new object[] { His.his.Choscode }).Bind(this.Column10); //这里修改了,查询所有

            TvList.newBind().Load("EQDict_SingerCode", null).Bind(this.Column12);
            TvList.newBind().Load("EQDict_WORKUNITCODE", null).Bind(this.Column13);

            ytTreeView_Main.vFiled           = "KINDCODE";
            ytTreeView_Main.tFiled           = "KINDNAME";
            ytTreeView_Main.pFiled           = "SUPERCODE";
            ytTreeView_Main.sql              = "ScanEQKind";
            this.ytTreeView_Main.FormatText += new YtWinContrl.com.events.TextFormatEventHandle(ytTreeView1_FormatText);


            this.ytTreeView_Main.reLoad(new object[] { His.his.Choscode });
        }
Exemplo n.º 7
0
        public EQFixManagEdit(Dictionary <string, ObjItem> drZ, Dictionary <string, ObjItem> drX, int isFlag, int Status)
        {
            InitializeComponent();
            TvList.newBind().add("作废", "0").add("报修状态", "1").add("维修状态", "2").add("交付状态", "6").Bind(Status_ytComboBox1);
            //deptid_selTextInpt.Sql = "DeptidBindInfo_EQFixManagEdit";
            //deptid_selTextInpt.SelParam = His.his.Choscode + "|{key}|{key}";


            repaircode_selText.Sql      = "GetRePairCode_EQFixManagEdit";
            repaircode_selText.SelParam = His.his.Choscode + "|{key}|{key}";


            RepairDeptId_selText.Sql      = "DeptidBindInfo_EQFixManagEdit";
            RepairDeptId_selText.SelParam = His.his.Choscode + "|{key}|{key}|{key}";


            reportmanId_selText.Sql      = "YongHuMingInfo_EQFixManagEdit";
            reportmanId_selText.SelParam = His.his.Choscode + "|{key}|{key}";

            this.drZ    = drZ;
            this.drX    = drX;
            this.isFlag = isFlag;
            this.Status = Status;
            this.Status_ytComboBox1.SelectedIndex = 3;
        }
Exemplo n.º 8
0
        private void EQFixManag_Load(object sender, EventArgs e)
        {
            EQKind_ytTreeView.SelectedNode = EQKind_ytTreeView.Nodes[0];
            TvList.newBind().add("无效", "0").add("未启用", "1").add("已启用", "2").add("已报废", "6").add("已冲销", "7").Bind(Status_Column);
            TvList.newBind().add("作废", "0").add("报修状态", "1").add("维修状态", "2").add("交付状态", "6").Bind(UseManagStatu_Column);



            BindStatusCode();
            DeptidBind();
            //如果为单步模式,那么只需要维修填写
            if (IfSingleOrMultStatus == 0)
            {
                BX_toolStrip.Visible     = false;
                WX_toolStrip.Visible     = false;
                JF_toolStrip.Visible     = false;
                TipStatus_toolStrip.Text = "当前系统设置为单步维修管理模式!";
            }
            if (IfSingleOrMultStatus == 1)
            {
                Add_toolStrip.Visible    = false;
                TipStatus_toolStrip.Text = "当前系统设置为多步维修管理模式!";
            }

            this.dateTimeDuan1.InitCorl();
            this.dateTimeDuan1.SelectedIndex = -1;
            this.dateTimePicker1.Value       = DateTime.Now.AddMonths(-1);
            this.dateTimePicker2.Value       = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 23, 59, 59);
        }
Exemplo n.º 9
0
        private void AddEQ_Load(object sender, EventArgs e)
        {
            ControlUtil.RegKeyEnter(this);
            this.selTextInpt1.Sql      = "FindEQKSID";
            this.selTextInpt1.SelParam = His.his.Choscode + "|{key}|{key}|{key}";

            this.choscode_yTextBox1.Text = His.his.Choscode.ToString();
            this.userid_yTextBox.Text    = His.his.UserId.ToString();
            this.username_yTextBox.Text  = His.his.UserName;
            TvList.newBind().add("启用", "1").add("停用", "0").Bind(ifuse_ytComboBox);//这里的1与0是对应的键值对,下标对应为0,1
            TvList.newBind().add("是", "1").add("否", "0").Bind(ifall_ytComboBox);

            warename_yTextBox1.TextChanged += new EventHandler(warename_yTextBox1_TextChanged);

            if (isFlag == 2)
            {
                //根据初始化构造函数,判断是否为添加或修改
                this.ifuse_ytComboBox.SelectedIndex = 0;
                this.ifall_ytComboBox.SelectedIndex = 0;
            }
            if (isFlag == 1 || isFlag == 0)
            {
                LoadInfoInEQWare();
                if (isFlag == 0)
                {
                    groupBox1.Enabled = false;
                    btnSave.Enabled   = false;
                }
                ifuse_ytComboBox.Enabled = false;
            }
        }
Exemplo n.º 10
0
        private void add_toolStripButton_Click(object sender, EventArgs e)//新增
        {
            this.KeyPreview = true;

            Dictionary <string, object> de = new Dictionary <string, object>();

            de["采购数量"] = 0;
            de["采购单价"] = "0.0000";
            de["采购金额"] = "0.0000";

            string wareid = this.InWare_selTextInpt.Value;
            string ifall  = LData.Es("EQWareIfall", null, new object[] { wareid });

            if (ifall.Equals("1"))
            {
                dataGView1.addSql("EQPurchasePlan_GetInEQ0", "设备名称", "", wareid + "|" + His.his.Choscode + "|" + His.his.Choscode + "|{key}|{key}|{key}|{key}");
            }
            else
            {
                dataGView1.addSql("EQPurchasePlan_GetInEQ", "设备名称", "", wareid + "|" + His.his.Choscode + "|" + His.his.Choscode + "|{key}|{key}|{key}|{key}");
            }
            dataGView1.addSql("CountryAskBuy_Add", "国别", "", "{key}|{key}|{key}");

            dataGView1.addSql("EQPurchasePlan_GetCompany", "生产商", "", His.his.Choscode + "|{key}|{key}|{key}");
            dataGView1.addSql("EQPurchasePlan_GetCompany1", "供应商", "", His.his.Choscode + "|{key}|{key}|{key}");
            TvList.newBind().Load("EQDict_SingerCode", null).Bind(this.unitcode);
            this.dataGView1.CellValueChanged += new DataGridViewCellEventHandler(dataGView1_CellValueChanged);
            this.dataGView1.AddRow(de, 0);
            this.dataGView1.CurrentRow.Cells[eqname.Index].ReadOnly = false;
            //this.dataGView1.CurrentRow.Cells[rowno.Index].Value = this.dataGView1.RowCount ;
        }
Exemplo n.º 11
0
        private void EQOutQuery_Load(object sender, EventArgs e)
        {
            TvList.newBind().Load("FindKSName_EQOutQuery", new object[] { His.his.Choscode }).Bind(this.Column8);
            TvList.newBind().Load("FindWareName_EQOutQuery", new object[] { His.his.Choscode }).Bind(this.Column47);

            WJs.SetDictTimeOut();
            this.dataGView1.Url = "StatistQuery_EQOutMainSearch";
            this.dataGView2.Url = "StatistQuery_EQOutDetailSearch";
            this.dateTimeDuan1.InitCorl();
            this.dateTimeDuan1.SelectedIndex = -1;
            this.dateTimePicker1.Value       = DateTime.Now.AddMonths(-1);
            this.selTextInpt2.Sql            = "StaticQuery_EQOutWare";

            this.selTextInpt2.SelParam = His.his.Choscode + "|{key}|{key}|{key}|{key}";
            TvList.newBind().add("等待审核", "1").add("作废", "0").add("已审核", "2").add("已出库", "6").Bind(this.Column7);

            this.selTextInpt1.Sql      = "StatistQuery_EQGetOutWareWay";
            this.selTextInpt1.SelParam = His.his.Choscode + "|{key}|{key}|{key}|{key}";

            this.selTextInpt_KS.Sql      = "StatQuery_EQOutQueryKS";
            this.selTextInpt_KS.SelParam = His.his.Choscode + "|{key}|{key}|{key}";

            this.dateTimeDuan1.SelectChange  += new EventHandler(dateTimeDuan1_SelectChange);
            this.dataGView1.SelectionChanged += new EventHandler(dataGView1_SelectionChanged);
        }
Exemplo n.º 12
0
        void ac_ServiceLoad(object sender, YtClient.data.events.LoadEvent e)
        {
            WJs.alert(e.Msg.Msg);


            if (!isAdd || !WJs.confirm("是否继续添加物资信息?"))
            {
                WZDM.ReLoadData(TvList.getValue(this.ytComboBox_KindCode).ToString());
                this.Close();
            }
            else
            {
                this.ytComboBox_CountCode.SelectedIndex    = -1;
                this.ytComboBox_ifUse.SelectedIndex        = 0;
                this.ytComboBox_WORKUNITCODE.SelectedIndex = -1;
                this.selTextInpt_PRODUCTPLACE.Value        = null;
                this.selTextInpt_PRODUCTPLACE.Text         = null;
                this.ytComboBox_SingerCode.SelectedIndex   = -1;
                this.ytComboBox_IFJL.SelectedIndex         = -1;
                this.ytComboBox_ZJTYPE.SelectedIndex       = -1;
                this.yTextBox_BM.Clear();
                this.yTextBox_BMJM.Clear();
                this.yTextBox_GuiG.Clear();
                this.yTextBox_ZJRATE.Clear();
                this.yTextBox_XH.Clear();
                this.yTextBox_JC.Clear();
                this.yTextBox_JM.Clear();
                this.yTextBox_Name.Clear();
                this.yTextBox_PY.Clear();
                this.yTextBox_Rec.Clear();
                this.yTextBox_TiaoXM.Clear();
                this.yTextBox_WB.Clear();
                this.yTextBox_EQID.Clear();
            }
        }
Exemplo n.º 13
0
 private void FixKindManag_Load(object sender, EventArgs e)//加载窗体
 {
     TvList.newBind().add("是", "1").add("否", "0").Bind(this.Column8);
     TvList.newBind().add("启用", "1").add("停用", "0").Bind(this.Column7);
     TvList.newBind().add("维修ID", "1").add("名称", "2").add("拼音码", "3").add("五笔码", "4").add("模糊查找", "5").Bind(this.Search_ytComboBox1);
     this.Search_ytComboBox1.SelectedIndex = 4;
 }
Exemplo n.º 14
0
 private void AddEQStatus_Load(object sender, EventArgs e)
 {
     TvList.newBind().add("否", "0").add("是", "1").Bind(this.ifdefault_ytComboBox);
     TvList.newBind().add("否", "0").add("是", "1").Bind(this.ifdepreciation_ytComboBox);
     TvList.newBind().add("停用", "0").add("启用", "1").Bind(this.ifuse_ytComboBox);
     InitForm();
     this.statusname_yTextBox.TextChanged += new EventHandler(statusname_yTextBox_TextChanged);
 }
Exemplo n.º 15
0
        //int TransOUTID = 0;

        public EQDiaoBoManag()
        {
            InitializeComponent();
            TvList.newBind().add("作废", "0").add("等待审核", "1").add("审核被拒", "2").add("已审核", "6").add("已冲销", "7").add("全部", "10").Bind(this.Status_ytComboBox);
            this.Status_ytComboBox.SelectedIndex = 1;

            this.selTextInpt1.Sql      = "WareBindInDiaoBo";
            this.selTextInpt1.SelParam = His.his.Choscode + "|{key}|{key}|{key}|{key}";
        }
Exemplo n.º 16
0
        private void PurchasePlan_Add_Load(object sender, EventArgs e) //窗体加载
        {
            this.WindowState = FormWindowState.Maximized;
            this.dataGView1.CellValueChanged += new DataGridViewCellEventHandler(dataGView1_CellValueChanged);

            TvList.newBind().add("其它(临时计划)", "0").add("月度计划", "1").add("季度计划", "2").add("年度计划", "3").Bind(this.ytComboBox_Plan);
            TvList.newBind().Load("EQUnitCodeAskBuy_Add", null).Bind(this.unitcode);


            this.InWare_selTextInpt.Text      = inware_name;
            this.InWare_selTextInpt.Value     = inware_id;
            this.InWare_selTextInpt.Enabled   = false;
            this.toolStripButton_Pass.Visible = false;
            this.toolStripButton_No.Visible   = false;

            this.dataGView1.Url = "EQPurchasePlanDetailSearch";

            if (isAdd != 1)
            {
                this.totalmoney_yTextBox.Text = dr["总金额"].ToString();
                this.ytComboBox_Plan.Value    = dr["计划类型"].ToString();
                if (!dr["制定日期"].IsNull)
                {
                    this.dateTimePicker1.Value = dr["制定日期"].ToDateTime();
                }
                this.memo_yTextBox.Text = dr["备注"].ToString();

                this.dataGView1.Columns[eqname.Index].ReadOnly = true;//是否可以再新增数据

                this.dataGView1.reLoad(new object[] { dr["采购计划ID"].ToString(), His.his.Choscode });

                this.cancel_toolStripButton.Enabled = false;

                if (isAdd == 3)
                {
                    this.toolStrip1.Enabled      = false;
                    this.dataGView1.ReadOnly     = true;
                    this.dateTimePicker1.Enabled = false;
                    this.memo_yTextBox.ReadOnly  = true;
                }
                if (isAdd == 4)
                {
                    this.add_toolStripButton.Visible    = false;
                    this.Get_toolStripButton.Visible    = false;
                    this.DeleButton.Visible             = false;
                    this.save_toolStripButton.Visible   = false;
                    this.toolStripButton_Pass.Visible   = true;
                    this.toolStripButton_No.Visible     = true;
                    this.cancel_toolStripButton.Visible = false;
                }

                this.dataGView1.CellValueChanged += new DataGridViewCellEventHandler(dataGView1_CellValueChanged);
                //BindUnit();
            }
            dataGView1.RowToXml += new RowToXmlHandle(dataGView1_RowToXml);
        }
Exemplo n.º 17
0
 private void EQWareManager_Load(object sender, EventArgs e)
 {
     WJs.SetDictTimeOut();
     //注意这里要写好对应的opt
     this.dataGView1.Url = "FindEQWares";
     TvList.newBind().add("库房编码", "1").add("库房名称", "2").add("拼音码", "3").add("五笔码", "4").add("模糊查找", "5").Bind(this.Search_ytComboBox1);
     this.Search_ytComboBox1.SelectedIndex = 4;
     this.dataGView1.IsPage = true;
     this.Search_ytComboBox1.TextChanged += new EventHandler(Search_ytComboBox1_TextChanged);
 }
Exemplo n.º 18
0
 public EQUseManagEdit(Dictionary <string, ObjItem> drZ, Dictionary <string, ObjItem> drX, int isFlag)
 {
     InitializeComponent();
     this.drZ    = drZ;
     this.drX    = drX;
     this.isFlag = isFlag;
     TvList.newBind().add("无效", "0").add("有效", "1").Bind(ytComboBox1);
     deptid_selTextInpt.Sql      = "DeptidBindInfo_EQUseManagEdit";
     deptid_selTextInpt.SelParam = His.his.Choscode + "|{key}|{key}";
 }
Exemplo n.º 19
0
        private void EQDepreciationManag_Load(object sender, EventArgs e)
        {
            TvList.newBind().add("无效", "0").add("有效", "1").Bind(StatusColumn);
            TvList.newBind().add("手工折旧", "0").add("自动折旧", "1").Bind(DepreTypeColumn);

            this.dateTimeDuan1.InitCorl();
            this.dateTimeDuan1.SelectedIndex = -1;
            this.dateTimePicker1.Value       = DateTime.Now.AddMonths(-1);
            this.dateTimePicker2.Value       = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 23, 59, 59);
        }
Exemplo n.º 20
0
        private void EQStatusManag_Load(object sender, EventArgs e)
        {
            WJs.SetDictTimeOut();
            this.dataGView1.Url    = "FindStatusManagInfo";
            this.dataGView1.IsPage = true;
            TvList.newBind().add("状态编码", "0").add("状态名称", "1").add("拼音码", "2").add("五笔码", "3").add("模糊查询", "4").Bind(this.Search_ytComboBox1);
            this.Search_ytComboBox1.SelectedIndex         = 4;
            this.Search_ytComboBox1.SelectedIndexChanged += new EventHandler(Search_ytComboBox1_SelectedIndexChanged);

            this.dataGView1.Url = "FindStatusManagInfo";
        }
Exemplo n.º 21
0
 private void ProducterManag_Load(object sender, EventArgs e)//加载窗体
 {
     TvList.newBind().add("是", "1").add("否", "0").Bind(this.Column6);
     TvList.newBind().add("是", "1").add("否", "0").Bind(this.Column7);
     TvList.newBind().add("是", "1").add("否", "0").Bind(this.Column5);
     TvList.newBind().SetCacheKey("KsData").Load("EQFindHisInfoDict", null).Bind(this.Column8);
     TvList.newBind().add("厂商ID", "1").add("名称", "2").add("拼音码", "3").add("五笔码", "4").add("模糊查找", "5").Bind(this.Search_ytComboBox);
     TvList.newBind().add("全部", "1").add("生产厂商", "2").add("供应商", "3").Bind(this.ytComboBox1);
     this.Search_ytComboBox.SelectedIndex = 4;
     this.ytComboBox1.SelectedIndex       = 0;
 }
Exemplo n.º 22
0
 private void EQBulidCard_Load(object sender, EventArgs e)
 {
     EQKind_ytTreeView.SelectedNode    = EQKind_ytTreeView.Nodes[0];
     UseStatus_ytTreeView.SelectedNode = UseStatus_ytTreeView.Nodes[0];
     this.dataGView1.Url = "LoadCardInfo";
     BindStatusCode();
     DeptidBind();
     TvList.newBind().add("无效", "0").add("未启用", "1").add("已启用", "2").add("已报废", "6").add("已冲销", "7").Bind(Status_Column);
     TvList.newBind().add("无效", "0").add("未启用", "1").add("已启用", "2").add("已报废", "6").add("已冲销", "7").add("全部", "10").Bind(ytComboBox1);
     this.ytComboBox1.SelectedIndex = 5;
 }
Exemplo n.º 23
0
        private void EQMonthAccountsManag_Load(object sender, EventArgs e)
        {
            this.dataGView2.IsAutoAddRow = false;
            TvList.newBind().add("无效", "0").add("有效", "1").Bind(StatusColumn);
            TvList.newBind().add("手工折旧", "0").add("自动折旧", "1").Bind(DepreTypeColumn);


            this.dataGView1.reLoad(new object[] { His.his.Choscode });
            this.dataGView1.IsPage            = true;
            this.dataGView1.SelectionChanged += new EventHandler(dataGView1_SelectionChanged);
            YJFlagJudge();
        }
Exemplo n.º 24
0
        public EQLingUse()
        {
            InitializeComponent();
            TvList.newBind().add("作废", "0").add("等待审核", "1").add("审核被拒", "2").add("已审核", "6").add("已冲销", "7").add("全部", "10").Bind(this.Status_ytComboBox);
            this.Status_ytComboBox.SelectedIndex = 1;

            this.selTextInpt1.Sql      = "WareBindInDiaoBo";
            this.selTextInpt1.SelParam = His.his.Choscode + "|{key}|{key}|{key}|{key}";

            IOIDInDetail  = LData.Es("FindIOIdInEQInMainLingYong", null, new object[] { His.his.Choscode });
            IfLYBuildCard = GetSysDanWei(2201);
        }
Exemplo n.º 25
0
 private void EQInOutManag_Load(object sender, EventArgs e)
 {
     WJs.SetDictTimeOut();
     this.dataGView1.IsPage = true;
     TvList.newBind().add("入出ID", "0").add("入出名称", "1").add("拼音码", "2").add("五笔码", "3").add("模糊搜索", "4").Bind(this.serachKind_ytComboBox);
     TvList.newBind().add("全部", "0").add("入库", "1").add("出库", "2").Bind(this.Filter_ytComboBox);
     TvList.newBind().add("入库", "0").add("出库", "1").Bind(this.IOFlagColumn);
     TvList.newBind().add("普通", "0").add("调拨", "1").add("申领", "2").add("盘点", "3").Bind(this.OPFlagColumn);
     this.serachKind_ytComboBox.SelectedIndexChanged += new EventHandler(serachKind_ytComboBox_SelectedIndexChanged);
     this.dataGView1.Url = "FindEQInOutInfo";
     initform();
 }
Exemplo n.º 26
0
 private void EQLingUse_Load(object sender, EventArgs e)
 {
     TvList.newBind().add("作废", "0").add("等待审核", "1").add("审核被拒", "2").add("已审核", "6").add("已冲销", "7").Bind(this.status_Column);
     TvList.newBind().add("普通", "0").add("调拨", "1").add("申领", "2").add("盘点", "3").Bind(this.opflag_Cloumn);
     WarecodeToWareName();
     this.dataGView1.Url = "LoadEQOutMainInfoLingYong";
     this.dataGView2.Url = "LoadEQOutDetailListLingYong";
     //dataGView1.IsPage = true;
     this.dateTimeDuan1.InitCorl();
     this.dateTimeDuan1.SelectedIndex = -1;
     this.dateTimePicker1.Value       = DateTime.Now.AddMonths(-1);
     this.dateTimePicker2.Value       = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 23, 59, 59);
 }
Exemplo n.º 27
0
 private void AddEQInOut_Load(object sender, EventArgs e)
 {
     //
     TvList.newBind().add("停用", "0").add("启用", "1").Bind(this.ifuse_ytComboBox);
     TvList.newBind().add("入库", "0").add("出库", "1").Bind(this.ioflag_ytComboBox);
     TvList.newBind().add("否", "0").add("是", "1").Bind(this.ifdefault_ytComboBox);
     TvList.newBind().add("不包含", "0").add("包含", "1").Bind(this.recipemonth_ytComboBox);
     TvList.newBind().add("不包含", "0").add("包含", "1").Bind(this.recipeyear_ytComboBox);
     TvList.newBind().add("普通", "0").add("调拨", "1").add("申领", "2").add("盘点", "3").Bind(this.opflag_ytComboBox);
     //this.dateTimePicker1.Value = DateTime.Now;
     this.ioname_textBox.TextChanged += new EventHandler(ioname_textBox_TextChanged);
     initForm();
 }
Exemplo n.º 28
0
 private void ProjectUnitManag_Load(object sender, EventArgs e)//窗体加载
 {
     WJs.SetDictTimeOut();
     TvList.newBind().add("ID", "1").add("名称", "2").add("拼音码", "3").add("模糊查询", "4").Bind(this.Search_ytComboBox);
     TvList.newBind().add("是", "1").add("否", "0").Bind(this.Column6);
     TvList.newBind().add("是", "1").add("否", "0").Bind(this.Column5);
     this.Search_ytComboBox.SelectedIndex = 3;
     this.dataGView1.Url = "FindEQUnit";
     // this.dataGView1.IsPage = true;
     this.Search_ytComboBox.SelectedIndexChanged += new EventHandler(Search_ytComboBox_SelectedIndexChanged);
     //this.Search_ytComboBox.TextChanged +=new EventHandler(Search_ytComboBox_TextChanged);
     //this.Search_ytComboBox.TextChanged += new EventHandler(Search_ytComboBox_TextChanged);
 }
Exemplo n.º 29
0
        private void EQChangeManag_Load(object sender, EventArgs e)
        {
            EQKind_ytTreeView.SelectedNode = EQKind_ytTreeView.Nodes[0];
            TvList.newBind().add("无效", "0").add("未启用", "1").add("已启用", "2").add("已报废", "6").add("已冲销", "7").Bind(Status_Column);
            TvList.newBind().add("作废", "0").add("等待审核", "1").add("审核被拒", "2").add("已审核", "6").Bind(ChangeManagStatu_Column);
            TvList.newBind().add("所属权变更", "1").add("原值变更", "2").add("使用状态变更", "3").Bind(ChangeTypeColumn);
            BindStatusCode();
            DeptidBind();

            this.dateTimeDuan1.InitCorl();
            this.dateTimeDuan1.SelectedIndex = -1;
            this.dateTimePicker1.Value       = DateTime.Now.AddMonths(-1);
            this.dateTimePicker2.Value       = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 23, 59, 59);
        }
Exemplo n.º 30
0
 private void SysValueManag_Load(object sender, EventArgs e)
 {
     TvList.newBind().add("是,多步维修", "1").add("否,单步维修", "0").Bind(this.ytComboBox_MoreStype);
     TvList.newBind().add("是", "1").add("否", "0").Bind(this.ytComboBox_BuildCard);
     TvList.newBind().add("是", "1").add("否", "0").Bind(this.ytComboBox_OnlyOneCard);
     TvList.newBind().add("使用", "1").add("不使用", "0").Bind(this.ytComboBox_UseQian);
     TvList.newBind().add("启用", "1").add("不启用", "0").Bind(this.ytComboBox_AutoUse);
     TvList.newBind().add("允许", "1").add("不允许", "0").Bind(this.ytComboBox_AllowDropOut);
     reLoad();
     if (this.yTextBox_XSWS.Text.Trim().Length <= 0)
     {
         this.yTextBox_XSWS.Text = "2";
     }
 }